View Full Version : CSS Color Codes. #???
a1rabbit
04-11-2007, 10:36 PM
I'm curious, until using PP I'd never seen the three digit codes behind the # sign. I've always seen/used six numbers.
How do I go about figuring out the three digit codes?
Thanks.
dakwegmo
04-11-2007, 11:01 PM
It's shorthand used in css. The six digit hex codes represent values of red, green, and blue. The first two characters are the red value, the middle two are green and the last two are blue. If each pair of characters contains the same values you can abbreviate it.
#000000 = #000
#ffffff = #fff
#ff0000 = #f00
#112233 = #123
etc.
a1rabbit
04-11-2007, 11:37 PM
Ahhh, that makes sense.
Thanks!
imventurer
09-26-2007, 10:07 AM
It's shorthand used in css. The six digit hex codes represent values of red, green, and blue. The first two characters are the red value, the middle two are green and the last two are blue. If each pair of characters contains the same values you can abbreviate it.
#000000 = #000
#ffffff = #fff
#ff0000 = #f00
#112233 = #123
etc.
That's really cool info, never really wondered about those shortcuts! Thanx!
But this short form of color definition makes sometimes problems.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.