tomasdev

web development handcrafted

CSS Resets

4 Oct, 2009. Written by Tom Roggero

Always highly recommended to use CSS Resets, not even the best but the one which always works for me, not being so long and not "* { }" hack. This is the CSS reset I use.

html, body, div, h1, h2, h3, h4, h5, h6, ul, dl, li, dt, dd, p, blockquote,
pre, form, fieldset, table, th, td { margin: 0; padding: 0; }
object, embed, a { outline:0 }
div { overflow:hidden; }

Update @ 2012: you can checkout my code snippets at Meraki Patterns

Leave a Reply