More CSS Optimization Techniques

A lot has been written about more efficient CSS (see further reading for some examples). Certainly, when you work with multiple people on larger sites, organizing your CSS in a logical, consistent manner becomes increasingly important.

In his post Squeaky Clean CSS Lokesh Dhakar provides some good tips and guidelines to follow.

Although the majority are not new to me, I did want to call out one useful technique I have not seen mentioned before for temporarily disabling style attributes.

Rather than commenting out the attribute, which can get pretty laborious after a while, simply place an "x" before the attribute name. For example: