CSS reset Reloaded - Eric Meyer


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



Copy this code and paste it in your HTML
  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. dl, dt, dd, ol, ul, li,
  7. fieldset, form, label, legend,
  8. table, caption, tbody, tfoot, thead, tr, th, td {
  9. margin: 0;
  10. padding: 0;
  11. border: 0;
  12. outline: 0;
  13. font-weight: inherit;
  14. font-style: inherit;
  15. font-size: 100%;
  16. font-family: inherit;
  17. vertical-align: baseline;
  18. }
  19. /* remember to define focus styles! */
  20. :focus {
  21. outline: 0;
  22. }
  23. body {
  24. line-height: 1;
  25. color: black;
  26. background: white;
  27. }
  28. ol, ul {
  29. list-style: none;
  30. }
  31. /* tables still need 'cellspacing="0"' in the markup */
  32. table {
  33. border-collapse: separate;
  34. border-spacing: 0;
  35. }
  36. caption, th, td {
  37. text-align: left;
  38. font-weight: normal;
  39. }
  40. blockquote:before, blockquote:after,
  41. q:before, q:after {
  42. content: "";
  43. }
  44. blockquote, q {
  45. quotes: "" "";
  46. }

URL: http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/

Report this snippet


Comments


You need to login to view comments.