Click to See Complete Forum and Search --> : stylesheet bgcolor for firefox


glenvern
03-07-2010, 08:43 AM
Can someone help please I am desperately trying to find the code that will put a <body bgcolor> into firefox using my stylesheet. the code I am using in my stylesheet is:-

body { background-color:lightblue; }

This puts a bgcolor into my webpages in all other browsers but not firefox.

Excavatorak
03-07-2010, 10:51 AM
Hello glenvern,
lightblue is not a color value.

Try it like this -
body {
background: #09f;
}

HEX color chart (http://www.2createawebsite.com/build/hex-colors.html) will help pick colors.

glenvern
03-07-2010, 12:03 PM
Thanx for the response. Unfortunately it still does not work in Firefox
works with Safara and Chrome and IE ok.

Excavatorak
03-07-2010, 12:16 PM
Thanx for the response. Unfortunately it still does not work in Firefox
works with Safara and Chrome and IE ok.

Something else is the problem then. Give us the link to the test site or post your code here.

It would probably help if you validate your site. Have a look at the links about validation in my sig below.


...

glenvern
03-07-2010, 12:50 PM
here's the test page:-

http://homepage.ntlworld.com/glen.vern/test.html

This is the doctype in use:-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Excavatorak
03-07-2010, 01:39 PM
Yes, the validator is your friend here. 103 errors in your CSS.

DXImageTransform (http://www.tankedup-imaging.com/css_dev/dxtransform-v.html) is a Microsoft thing only? ... FF doesn't seem to support it.
DXImageTransform browser support (http://www.google.com/search?hl=en&rls=com.microsoft%3Aen-us&q=DXImageTransform+browser+support&aq=f&aqi=&aql=&oq=)