Posted By

cbrant on 05/14/08


Tagged

css reset


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

cbrant


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. body {
  19. line-height: 1;
  20. }
  21. ol, ul {
  22. list-style: none;
  23. }
  24. blockquote, q {
  25. quotes: none;
  26. }
  27.  
  28. /* remember to define focus styles! */
  29. :focus {
  30. outline: 0;
  31. }
  32.  
  33. /* remember to highlight inserts somehow! */
  34. ins {
  35. text-decoration: none;
  36. }
  37. del {
  38. text-decoration: line-through;
  39. }
  40.  
  41. /* tables still need 'cellspacing="0"' in the markup */
  42. table {
  43. border-collapse: collapse;
  44. border-spacing: 0;
  45. }

Report this snippet  

You need to login to post a comment.