Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Univeral Css Code For Every Website

DZone's Guide to

Univeral Css Code For Every Website

·
Free Resource
// 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; }


Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}