Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think the first bit is overly complicated. For example, the first @import statement loads a good chunk of code from a third party site for no good reason, really. A simple * {border:0; padding:0; margin:0;} will suffice for most sites.

The rest of the article is excellent, and the way he handles IE is by far the best way to do things, avoiding corrupting your css with mishmash and hacks.

A great resource.



If the site contains any sort of CMS or code generated html then don't remove padding and margin with a wildcard (unless you plan to specifying it manually for every tag).

Some things are supposed to have margin and padding.


(unless you plan to specifying it manually for every tag)

That's exactly what you would do. Knowing that everything has no padding and margin can sometimes make life a lot easier than trying to hunt down phantom default padding and how each browser displays it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: