Currently experiencing an issue where the text on my website appears aligned to the left upon initial page load. However, upon refreshing or revisiting the page in the same tab, everything displays correctly.
The problem seems to be linked to a delay in loading the website logo within a div, causing the text div to disregard the logo div altogether.
Is there a solution to ensure the image loads before the CSS is rendered, or a way to keep the divs in place even without content?
(Sample CSS)
div.topbar div.logo{
margin-left: 15%;
margin-top: 1px;
margin-bottom: 1px;
background-image: url("logo.png");
background-repeat: no-repeat;
height: 100%;
}
div.topbar div.navigation{
display: inline-block;
position: absolute;
top: 0;
margin-left: 25%;
font-family: 'Open Sans Light', sans-serif;
font-size: 15px;
margin-top: 10px;
}