Reset CSS de Eric Meyer


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



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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.