Welcome to WebmasterWorld Guest from 54.197.94.141

Forum Moderators: not2easy

Message Too Old, No Replies

RGB Color Values in CSS

Browser support?

   
10:03 am on Feb 12, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Can anyone fill me in on browser support for rgb values in CSS?

Like this:

color: rgb(255,0,0);

Many thanks...

Nick

10:37 am on Feb 12, 2003 (gmt 0)

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hi Nick,

As far as I know, this is very well supported. I've tested it in Mozilla 1.0, NN7, and IE5, IE5.5 and IE6 and it works like a dream.

HTH.

10:41 am on Feb 12, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Thanks Blobfisk,

I've been messing with it in NN4 and that horrid little thing also does a good job ;)

Thanks...

Nick

10:53 am on Feb 12, 2003 (gmt 0)

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Interesting about NN4.x. I am surprised! It does seem to handle colours ok, but any time I try to apply pseudo-class colours it just falls down and tells me where to go!
10:58 am on Feb 12, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Yes, I misspelt fuchsia and it didn't display the text at all! - I think we can say it's well supported but one should apply a little caution when handling the beast ;)

Nick

11:17 am on Feb 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The Eric Meyer book "CSS 2.0 Programmer's Reference" has a pretty comprehensive chart of browser quirks.

All the browsers it lists have an unqualified Yes against Color support.

The usual caveats apply -- bad code will be interpreted differently by each browser. Don't expect the same color if you code
color: rgb(500, -50, 25.5)