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!)

About this user

Phillip B Oldham //iyoti.com/

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Reset margins to help with layout

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.
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed