[thelist] Understanding CSS with 3 digit colors ?

Nemesis nemesis at nemesis1.f2o.org
Wed Aug 20 13:49:48 CDT 2003


Rob Smith wrote:

> Hi list,
> 
> I've been trying to beef up my CSS skills and I've noticed something that
> I'm not real familiar with. Would someone please explain to me why people
> are defining colors with only 3 hex numbers? For example:
> 
> A:hover {
> 	FONT-WEIGHT: 900; COLOR: #555; Font-Size: 10px;
> }
> 
it is color shorthand. You can't do it with all colors only with grouped 
pairs

color: #FF0000;
becomes color: #F00;

color: #000000
becomes color: #000

color: #66CC66;
becomes color: #6C6;

BTW font-weight: breaks in Mac IE every weight is bold.

HTH
Gary
-- 
The Nemesis Project
http://nemesis1.f2o.org
One Stop CSS



More information about the thelist mailing list