Log in

View Full Version : css color code vs html color codes



james438
08-06-2007, 04:36 PM
Just validating some code on my site and I am noticing that most of the errors are due to my using html color codes (like 525252) in my css code. Since I would like to keep the color scheme the same is there a way that I can find out what the conversions are for the numbers that I am using? like a chart or something?

thanks :)

Twey
08-06-2007, 04:48 PM
In both CSS and HTML, these colours must be prefixed with an octothorpe (#).

james438
08-06-2007, 08:28 PM
thanks, that helped clean up a lot of errors :)