Posted By

mennyj on 06/18/10


Tagged

css default reset rtcrm


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

pigcore
janvdm


CSS Reset


 / Published in: CSS
 

[via rtcrm]

This resets all styles. Removes any default styles set by the user's browser. rtcrm

  1. html, body, div, span, applet, object, iframe,
  2. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  3. a, abbr, acronym, address, big, cite, code,
  4. del, dfn, em, font, img, ins, kbd, q, s, samp,
  5. small, strike, strong, sub, sup, tt, var,
  6. b, u, i, center,
  7. dl, dt, dd, ol, ul, li,
  8. fieldset, form, label, legend,
  9. table, caption, tbody, tfoot, thead, tr, th, td {
  10. margin: 0;
  11. padding: 0;
  12. border: 0;
  13. outline: 0;
  14. font-size: 100%;
  15. vertical-align: baseline;
  16. background: transparent;
  17. }
  18. body { line-height: 1; }
  19. ol, ul { list-style: none; }
  20. blockquote, q { quotes: none; }
  21. blockquote:before, blockquote:after,
  22. q:before, q:after { content: ''; content: none; }
  23.  
  24. /* remember to define focus styles! */
  25. :focus { outline: 0; }
  26.  
  27. /* remember to highlight inserts somehow! */
  28. ins { text-decoration: none; }
  29. del { text-decoration: line-through; }
  30.  
  31. /* tables still need 'cellspacing="0"' in the markup */
  32. table { border-collapse: collapse; border-spacing: 0; }

Report this snippet  

You need to login to post a comment.