[thelist] using rgb values for colors
Timothy J. Luoma
lists at tntluoma.com
Tue Sep 24 22:46:01 CDT 2002
Jacob Metcalf wrote:
> Why don't you use Photoshop or Gimp to pick your colors?
Maybe he uses a text editor
> and then get the hex values.
you can get them much more easily than that.
> RGB in CSS might work in some browsers but not all
I don't know of any that don't support it, but it's a possibility. Not
to plug again, but you can test browser support at the page
http://tntluoma.com/sidebars/triplecolors/
which shows the colors by name (least supported), hex, and RGB. It
works in NN4 and IE5.0 (Windows)
> and you will not be able to validate your CSS.
Ah... err... false.
RGB is totally valid in CSS:
Ref: http://www.w3.org/TR/css3-color/#rgb-color
em { color: #f00 } /* #rgb */
em { color: #ff0000 } /* #rrggbb */
em { color: rgb(255,0,0) } /* integer range 0 - 255 */
em { color: rgb(100%, 0%, 0%) } /* float range 0.0% - 100.0% */
TjL
--
30 Days to becoming an Opera Lover
http://www.tntluoma.com/switch
Day 22: Can you trust your browser?
http://tntluoma.com/opera/lover/day22-security/
More information about the thelist
mailing list