Posted By

Tamedo on 08/20/08


Tagged


Versions (?)

CSS RESET


 / Published in: CSS
 

  1. /* --------------------------------------------------------------
  2.  
  3.   Resets default browser CSS.
  4.  
  5. -------------------------------------------------------------- */
  6.  
  7. html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; }
  8. body { line-height: 1.5; background: #fff; margin: 1.5em 0; }
  9. table { border-collapse: collapse; border-spacing: 0; }
  10. caption, th, td { text-align: left; font-weight:400; }
  11. blockquote:before, blockquote:after, q:before, q:after { content: ""; }
  12. blockquote, q { quotes: "" ""; }
  13. a img { border: none; }
  14. input,textarea { margin: 0; }
  15.  
  16. /* Removes Firefox imposed outline */
  17. a { outline: none; }
  18.  
  19. /* Clearing floats without extra markup */
  20. .wrapper { display: inline-block; }
  21. .wrapper:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
  22. * html .wrapper { height: 1%; }
  23. .wrapper { display: block; }

Report this snippet  

You need to login to post a comment.