Forum Moderators: open
I fixed it by specifying the same background colour for the column div it's occuring in as the main div containing it, but I'm curious about why it was happening and where Safari was getting the big idea. Anyone?
As a matter of good practice, should you always specify some sort of background colour (even if transparent) for all principal container divs?
As a matter of good practice, should you always specify some sort of background colour (even if transparent) for all principal container divs?
That makes sense to me. I know that it used to be important to declare background color for block level elements whenever a color rule existed. I'm not familiar enough with the innards of the redering engine to know how this works. Opera used to do something similar, especially when the page load hit a snag of some kind, just ost packets or whatever - but I haven't seen that for several browser verions.
Are there any particular quirks in how the various browsers render different image types? (Thinking of experimenting with a jpg or png instead of a gif).
When the background green appears, it's not solid -- there are horizontal lines of varying thickness of the correct background colour (#f2efe3) within it. The images it's occuring with are the background images of the second column div, which is the main content div (nav to the left is the other). The first item of text in this div is a heading (h2, hence #006600), though it's enclosed within a subdiv .text, so is not directly entered in columnTwo itself.
Have you known browsers pick up a text colour and display it as background to a loading image before, or was this just a shot in the dark?
<div><img> </div> or
<div><img>
</div>
Sometimes white space in code causes a problem. If there are gaps, try:
<div><img></div> without any spaces or returns.
The other possibility is set the line-height to zero pixels for that <div> only.
Marshall
<div id="columnTwo" style="background-image:url(../images/layout/xyz.gif);background-repeat:no-repeat">
div content -- two further divs, one containing images, one containing text
</div>
There's probably white space somewhere in the div. I'll check tomorrow, remove any, and try that out. Thanks for your time.