Posted By

tomdowning on 09/21/11


Tagged


Versions (?)

CSS Reset


 / Published in: CSS
 

Based on work by Eric Meyer

  1. /* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
  2. -------------------------------------------------------------- */
  3.  
  4. html, body, div, span, applet, object, iframe,
  5. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  6. a, abbr, acronym, address, big, cite, code,
  7. del, dfn, em, font, img, ins, kbd, q, s, samp,
  8. small, strike, strong, sub, sup, tt, var,
  9. b, u, i, center,
  10. dl, dt, dd, ol, ul, li,
  11. fieldset, form, label, legend,
  12. table, caption, tbody, tfoot, thead, tr, th, td {
  13. background: transparent;
  14. border: 0;
  15. margin: 0;
  16. padding: 0;
  17. vertical-align: baseline;
  18. }
  19. body {
  20. line-height: 1;
  21. }
  22. h1, h2, h3, h4, h5, h6 {
  23. clear: both;
  24. font-weight: normal;
  25. }
  26. ol, ul {
  27. list-style: none;
  28. }
  29. blockquote {
  30. quotes: none;
  31. }
  32. blockquote:before, blockquote:after {
  33. content: '';
  34. content: none;
  35. }
  36. del {
  37. text-decoration: line-through;
  38. }
  39. /* tables still need 'cellspacing="0"' in the markup */
  40. table {
  41. border-collapse: collapse;
  42. border-spacing: 0;
  43. }
  44. a img {
  45. border: none;
  46. }

Report this snippet  

You need to login to post a comment.