DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

Univeral Css Code For Every Website

04.28.2007
| 1364 views |
  • submit to reddit
        // I add this piece of code to every stylesheet I write, before starting on a new website design project


   * {
     padding:0;
     margin:0;
   }
   h1, h2, h3, h4, h5, h6, p, pre, blockquote, label, ul, ol, dl, fieldset, address { margin:1em 5%; }
   li, dd { margin-left:5%; }
   fieldset { padding: .5em; }