Design News:
A Primer on the CSS Font Shorthand Property
This article looks at how to use the CSS font shorthand property, how it can be misused, and what potential drawbacks there might be to including it in your CSS code.
Comments (1)
Excellent, well laid out and articulated article.
Personally, I’m not a fan of compressing CSS into unintelligible short hand and often explicitly specify ALL the attributes. The benefits (to me anyway) of the clear specificity and readability totally outweigh the .5 milliseconds (maybe) in performance gain - especially when that data is only read once and cached anyway!
- I suspect people voted “thumbs down” on the premise of CSS shorthanding in general, not the tone and /or quality of the article which was not only first rate, but was probably the best article from CSS drive this month!