Eric Meyer’s Reset CSS


/ Published in: CSS
Save to your folder(s)



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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.