Wed, 2004-02-11 10:59
I try and keep my CSS font style shorthand to a minimum but am missing something when it comes to adding a colour. For example...
font: bold 12px verdana, helvetica, arial, sans-serif;
...is OK but if I add a colour then it doesn't seem to work properly eg:
font: bold 12px #f90 verdana, helvetica, arial, sans-serif;
I know there is a certain order where things are supposed to work in this type of shorthand but I've tried adding the colour everywhere and I'm not getting it. So, what's the trick?
Regards
PAUL
SkyRocket Design Co
Wed, 2004-02-11 14:19
#1
adding colour to font style shorthand
I'm afraid you can't...
Take a look at the specs for what you can define with a shorthand:
http://www.w3.org/TR/CSS2/fonts.html#propdef-font
Mon, 2004-02-16 02:27
#2
adding colour to font style shorthand
... (sigh) that's what I thought. Another thing for CSS3 to fix? :roll: