I've built a template using CSS, and I'm having trouble with a background color showing up in Mozilla only. The CSS works perfectly in IE 7, but not Firefox. Any suggestions?
My goal is to have the overall container have a white background that extends down the page as page height may change. Any ideas are helpful! And thanks in advance!
Other than taking out the un-needed "background-image:none;" and maybe clearing your cache (in case you are re-loading the old paged document), -no ideas. This should work. It is the background-color that you are missing, yes? Mozilla, Firefox etc., are 'picky' to be accurate actually, they require the "#" for any "color" statement to work ("color:foo;" being the color of the text, and "background-color:foo;" being the background color of the Selector to which it is apply, -in the base, "body"...)
You're gooing to want to fix any additional instances of "background:#foo;" where no other vaule is stated, to be "background-color:#foo;" if "background-color" is the only thing that you are after, and this:
(note the double-colons :: )
And, get the order in the correct order of "link, visited, hover, active;" even though they have the SAME declarations (and thus, order doesn't matter). -It's a good habit to write these in the correct 'order', else you will be getting the "mouse-down/active" color before the 'at rest', 'hover' or 'visited' color... This can save you many terrible quarter-hours of late-frustration trying to figure out why in some yet-to-be-created navigation, you cannot get the link-colors to behave nicely...
Yea - it's the background color (white) i'm missing in the div container. The background of the page is a tan color, but the overall div container background should be white.
Okay, I'm going to try this new solution. I'll let you know if it works. Thanks WebJoel!
Okay GOOD NEWS: The double semi-colon worked! However, it changed the background color of the page as well as the background color of the div container.
Which is why you should post ALL the code, not just the css. Had we had access to the full code, we could have spotted the non cleared float easily.......
Which is why you should post ALL the code, not just the css. Had we had access to the full code, we could have spotted the non cleared float easily.......
-Says you. *I* might have stared at a non-cleared float for a day before I spotted it...
Bookmarks