CMS Development

scohoe
Member

Where are the inline styles coming from?

My template file looks like this  

 

<div class="post-item">
                    {% if not simple_list_page %}

Then on the page, it loads like this

<div class="post-item" style="position: absolute; left: 389px; top: 0px;">
                    
                  "content content"

Where is that inline style coming from?

0 Upvotes
4 Replies 4
Jsum
Key Advisor

Where are the inline styles coming from?

Hey @scohoe,

 

We need a little more information. Is this happening live on the page, the inline styling not existing in the template code at all?

 

If that is the case, and considering the css is positioning, I would say you have a rogue javascript file injecting the css based on some height or width calculations. 

 

If you share a shareable link I bet we can figure this out.

 

Need help? Hire Us Here

scohoe
Member

Where are the inline styles coming from?

@Jsum Sure, what kind of shareable link would give more information?

 

The inline style does not exist in those template files, so I'm starting to wonder too about what js is injecting that, and why.

 

The page in question is something like this https://info.trustyoak.com/blog/author/caty-smart

0 Upvotes
MFrankJohnson
Thought Leader

Where are the inline styles coming from?

>>Where is that inline style coming from?

 

Possibly from a css stylesheet?

- see Create, edit, and attach CSS files to style your site

 

Note: Please search for recent posts as HubSpot evolves to be the #1 CRM platform of choice world-wide.

 

Hope that helps.

 

Be well,
Frank


www.mfrankjohnson.com
0 Upvotes
scohoe
Member

Where are the inline styles coming from?

Style sheets don't inject code into the html, that's the page source showing the inline styles.

 

 

0 Upvotes