CSS Techniques

Monday By Noon has a good list of CSS tech­niques to help you save your sanity:

The list is good, but I’d have to say I dis­agree with the first item:

* { margin:0; padding:0; border:0; }

This is meant to set all of the prop­er­ties to 0 to make sure the browsers aren’t adding any weird spac­ing. I did this for a time, but later decided to just work with the defaults that the browser gives you.

I find that when I reset every­thing to 0, I just end up adding a lot more styles and styling things that I wouldn’t have oth­er­wise styled.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Please note: I love to hear useful feedback from readers. However, if your comment does not include something more useful than "this is great!", it will be marked as spam and deleted.