Forum Moderators: not2easy

Message Too Old, No Replies

What is this color #369

A little confused

         

geroido

9:17 am on May 1, 2009 (gmt 0)

10+ Year Member



I understand the basic of hex colors in css code. However I'm having a problem understanding what color is represented by a 3 digit code like #369. Normally I see something like #79b7c4 and that's easy to understand. What does the 3 digit code mean (#369) and how does the browser know what color it is.

Thanks for any help

simonuk

9:19 am on May 1, 2009 (gmt 0)

10+ Year Member



hex numbers are 6 digits but in CSS you don't always need to enter all 6 if the numbers match in some way.

#112233 can just be entered as #123 in the CSS file

geroido

9:28 am on May 1, 2009 (gmt 0)

10+ Year Member



Thanks for that simonuk. I understand now.