This is an archive site. For the recent posts, visit

Ordered List


Aug 26 2004

A Little Help

I’m in the process of writing a few new articles for this site, and I thought I’d let you in on one and get some of your help. The article I’m speaking of is called ‘Writing Lean CSS.’ I have several tips of my own currently, but I don’t consider myself to be the ultimate authority on CSS. I’d like to hear from you any tips that you have seen or have used to trim down a CSS file. And just to give some people motivation, I have Gmail invites for the two best tips.

Here’s an example of one of my tips, to give you an idea of what I’m looking for:

Define the most common font attributes in the body definition of your CSS file instead in each individual element. Then change or overwrite those attributes in areas that you want them to be different. Example:

body {
  font:normal x-small/1.4 Verdana, Arial, Helvetica, san-serif;

h1 {
  font-family: Georgia, Times, serif;

So add your tip. I’ll give credit to any I use in the article. And don’t forget about the prize.