CSS background tag not working in Firefox, code inside.

jtusa

Diamond Member
Aug 28, 2004
4,188
0
71
Updated:

This is the stylesheet that's being loaded onto the page. The background color will work in IE, but in Firefox the background color is showing up, but the other stuff works. It's like firefox is just ignoring the background tag.

<style type="text/css">
<!--

body { background-color: #629C24 }

a:link { text-decoration: none; font-family: arial; font-weight: bold; color: #629C24 }
a:visited { text-decoration: none; font-family: arial; font-weight: bold; color: #629C24 }
a:hover {text-decoration: underline; font-family: arial; font-weight: bold; color: #629C24 }

h1 { font-family: arial; font-size: 11pt; color: #000000 }
h2 { font-family: arial; font-size: 12pt; color: #000000 }
h3 { font-family: arial; font-size: 18pt; color: #FFFFFF }

-->
</style>
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
you need to use non-conflicting ids or classes for the two stylesheets to not conflict? what do you mean that your CSS doesn't work in firefox? i generally haven't had a problem with it.
 

jtusa

Diamond Member
Aug 28, 2004
4,188
0
71
Originally posted by: oog
you need to use non-conflicting ids or classes for the two stylesheets to not conflict? what do you mean that your CSS doesn't work in firefox? i generally haven't had a problem with it.

The "body { background-color: #whatevercolor }" won't register in firefox but works fine in IE.
 

statik213

Golden Member
Oct 31, 2004
1,654
0
0
body { background-color: #whatevercolor }

works fine for me... it could be that you're missing the { or } in a block above or below the style specs for the body tag, so firefox is not able to parse the CSS properly.
Try commenting out large blocks of code (i.e. all but the body tag) and see if the background-color works, then gradually uncomment the code till you find the problem.
 

jtusa

Diamond Member
Aug 28, 2004
4,188
0
71
Originally posted by: statik213
body { background-color: #whatevercolor }

works fine for me... it could be that you're missing the { or } in a block above or below the style specs for the body tag, so firefox is not able to parse the CSS properly.
Try commenting out large blocks of code (i.e. all but the body tag) and see if the background-color works, then gradually uncomment the code till you find the problem.

Will do.