Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
photo of Jennifer Kyrnin

Jennifer's Web Design / HTML Blog

By Jennifer Kyrnin, About.com Guide to Web Design / HTML since 1997

How clean is your CSS file?

Thursday October 30, 2008
When I write a review of a website, I always check to see if the CSS validates. But I almost never look at the size of the CSS file or if it's well written. I mean, if it works and makes the page look right, who cares? But then I had to work on a site with a CSS file the size of New York. Okay, maybe not literally, but wading through it felt like I was expected to walk blind-folded through New York City without a map. In desperation, and to finish the job on time, I did like every other developer had done before me. I created a bunch of id'd selectors and made my styles as specific as I could. Yes, I added to the problem. But today I learned about a Firefox add-on you can get from SitePoint that will evaluate the current page to see what selectors it has versus which are used in the CSS. This can help you with sites you maintain to keep your CSS tidy. Which keeps the downloads faster and your customers happier.

Comments

October 30, 2008 at 3:41 pm
(1) web design mumbai says:

Great information

December 20, 2008 at 5:50 pm
(2) Taylan Aktepe says:

I have been using http://www.cleancss.com/ for this.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore Web Design / HTML

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.