Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Reset margins to help with layout (See related posts)

Throw this at the top of your first CSS rules, and you should have a few less headaches with layouts.

margin: 0;
padding: 0;

Note: You have to then add margins/padding to *every* element that needs it (p, dl, ul, etc), otherwise things will look a little odd.

You need to create an account or log in to post comments to this site.

Related Posts