Ezilon.com - Target Your Audience, be Seen in Your Region

Is there any difference in colour codes?

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 18 posts

Joined: Dec 2006

Confused 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.

They have: 15 posts

Joined: Dec 2006

do you mean like
font color="red"'
vs
font color="#000000"'
?

Busy's picture
Modrater

He has: 6,148 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

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...