Friday, July 28, 2006

Cleaning up your CSS

Two things related to cleaner CSS:

First, a great suggestion on how to better organize your CSS files. The idea is to use indentation in your CSS files to make it cleaner to look at and easier to find elements. Just like you would indent source code, you indent your CSS. Very good idea, and I can't believe I haven't thought of it!

Secondly, we all know there are times when CSS browser hacks are necessary. But they always make CSS files look so nasty. And it is often difficult to remember what each hack needs to be formatted like. Using the CSS Browser Selector JS library, it becomes easy to add browser hacks into your CSS files without making them messy or having to remember how to format them.

No comments: