Padding gets crazy when loading. I have to refresh the page to have all elements back in place.

I just created this website: https://deremedia.com

I have selected transparent header and given a padding-top to the first section in every page so the elements don't  intercept with the header. The problem is that when I load the page, some elements (not exclusively the ones close to the header) get messed up, as if the padding wasn't taken in consideration https://prnt.sc/kamhs4

When I refresh the page, the elements go back in place https://prnt.sc/kamhyf

Here is the page in this example: https://deremedia.com/nosotros/

That also happens in middle sections: https://prnt.sc/kamic6

This is how it looks when refreshed: https://prnt.sc/kamiko

Notice the padding? You can see the live page here: https://deremedia.com/expertise/

The funny thing is that it does not happen with the first section of the homepage or blog and the only difference is the background image.

I've tried to use margin instead of padding but some browsers (safari) don't read the margin and it stays messed up. I also tried emptying cache and even other laptops but still the same.

Any suggestions in how to fix this?

Comments

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.