Posted By

czapata on 01/08/10


Tagged

css


Versions (?)

CSS Reset


 / Published in: CSS
 

Original CSS Reset code by Erick Meyer http://meyerweb.com/eric/tools/css/reset/

  1. /* http://meyerweb.com/eric/tools/css/reset/ */
  2. /* v1.0 | 20080212 */
  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. margin: 0;
  14. padding: 0;
  15. border: 0;
  16. outline: 0;
  17. font-size: 100%;
  18. vertical-align: baseline;
  19. background: transparent;
  20. }
  21. body {
  22. line-height: 1;
  23. }
  24. ol, ul {
  25. list-style: none;
  26. }
  27. blockquote, q {
  28. quotes: none;
  29. }
  30.  
  31. blockquote:before, blockquote:after,
  32. q:before, q:after {
  33. content: '';
  34. content: none;
  35. }
  36.  
  37. /* remember to define focus styles! */
  38. :focus {
  39. outline: 0;
  40. }
  41.  
  42. /* remember to highlight inserts somehow! */
  43. ins {
  44. text-decoration: none;
  45. }
  46. del {
  47. text-decoration: line-through;
  48. }
  49.  
  50. /* tables still need 'cellspacing="0"' in the markup */
  51. table {
  52. border-collapse: collapse;
  53. border-spacing: 0;
  54. }

Report this snippet  

You need to login to post a comment.