Use resets with caution…

jun19.09

All the cool kids reset page elements with:
*
{
margin: 0;
padding: 0;
}

I discovered a problem with this today, after a lot hair out-pulling. The page I was troubleshooting was http://www.airbarrierseminar.com. When visitors would click on File / Print using IE7, the browser would crash with an mshtml.dll error. Removing this one element solved the issue; chances are, however, that the bug has to do with some additional element in the page, because a couple of the other pages on the site – which uses the same stylesheet – were not crashing. So this is not the entire issue – but it is definitely key, since removing it stopped the crashing.  I intend to figure it out, since a lot of folks still swear by this method.

Check out Chris’s post on css-tricks.com for some pros and cons regarding this tag.  There are some good posts there, too.

About the Author