Is there any difference in colour codes?
Is there any difference between using hex or rgb codes or colour names when coding a page? Does it make a difference in the browser used? Obviously the coding is a little different with the hex or rgb or colour names. Also I am wondering why the sites that have these codes are labeled as web safe. I don't know what that means.
j4k3 posted this at 05:12 — 15th December 2006.
They have: 15 posts
Joined: Dec 2006
do you mean like
font color="red"
'vs
font color="#000000"
'?
Busy posted this at 09:02 — 15th December 2006.
He has: 6,151 posts
Joined: May 2001
the # before the letters/numbers means rgb, so #000000 is the correct way to do it.
Web safe is using within the 256 colour scope, which is meant to be 100% universal on all browsers and all platforms.
Using the color names can be done but not all are supported, I often use the black and white instead of #000000 and #ffffff but keep away from the others as I founf some time back Mac's had issues with names.
With CSS the 6 digit/number rgb combination can be shortened to 3, #000000 can become #000, but if you get a color like #ffcc00, shortening it can be tricky as #fc0 wont give you want you want.
Just a note, the 0 in rgb is always the number 0, not the letter O
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.