2 replies [Last post]
skyrocket
skyrocket's picture
Offline
Enthusiast
Sydney - Australia
Last seen: 16 years 49 weeks ago
Sydney - Australia
Timezone: GMT+10
Joined: 2003-12-18
Posts: 71
Points: 0

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

PAUL - SkyRocket Design Co
web design sydney northern beaches

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 4 years 43 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

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

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

skyrocket
skyrocket's picture
Offline
Enthusiast
Sydney - Australia
Last seen: 16 years 49 weeks ago
Sydney - Australia
Timezone: GMT+10
Joined: 2003-12-18
Posts: 71
Points: 0

adding colour to font style shorthand

... (sigh) that's what I thought. Another thing for CSS3 to fix? :roll:

PAUL - SkyRocket Design Co
web design sydney northern beaches