Posted By

satie83 on 08/12/12


Tagged

css reset


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

ed_
Fellini


CSS - Eric Meyers CSS reset


 / Published in: CSS
 

  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.  
  19. body {
  20. line-height: 1;
  21. }
  22.  
  23. ol, ul {
  24. list-style: none;
  25. }
  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.  
  47. del {
  48. text-decoration: line-through;
  49. }
  50.  
  51. /* tables still need 'cellspacing="0"' in the markup */
  52. table {
  53. border-collapse: collapse;
  54. border-spacing: 0;
  55. }

Report this snippet  

You need to login to post a comment.