Home

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!

#1: Mark on 06/27 at 02:28 PM
Commenting is not available in this weblog entry.

News Tools &
Other Resources

CSS Compressor

Use this tool to compress your CSS code, with three levels of compression to choose from!

CSS AutoPrefixer

Intelligently add CSS vendor prefixes to your CSS code. Just paste and copy!

Image to Color Palette Generator

Get the primary colors of any image in hex format with this online tool!

Image Optimizer

Use this tool to easily optimize regular gifs, animated gifs, jpgs, and pngs, so they load as fast as possible.

Button Maker

Use this tool to easily create those popular 80x15 micro buttons you see on web sites everywhere.

FavIcon Generator

Generate a favicon using any regular image with this tool. A favicon is a small, 16x16 image that is shown inside the browser's location bar and bookmark menu when your site is viewed.

Ribbon Rules Generator

Create alternating colored horizontal rules quickly with this new Web 2.0 tool.

.htaccess Banning Generator

Generate the necessary .htaccess code to ban visitors based on their IP address, referrals, or disable hotlinking on the desired file types on your server, such as images.

.htaccess Password Generator

Generate all the necessary codes needed to password protect a directory or selects files within it on your site using .htaccess.



Partners & ResourcesOur
Partners


CSS Forums News

Dynamic Drive forums | Register

The Latest Comments

All images and content copyright © 2017 CSS Drive. Contact Info | Back to Top
Affiliate Discloser: We receive a commission from purchases through some links on this site