Posted By

LukeLarsen on 01/28/08


Tagged

css reset Meyers


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

blackabee
jonhenshaw
rengber


css start


 / Published in: CSS
 

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

Nice css reset for commonly used styles

  1. /* RESETS */
  2. html, body, div, span, applet, object, iframe,
  3. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  4. a, abbr, acronym, address, big, cite, code,
  5. del, dfn, em, font, img, ins, kbd, q, s, samp,
  6. small, strike, strong, sub, sup, tt, var,
  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-weight: inherit;
  15. font-style: inherit;
  16. font-size: small;
  17. font-family: inherit;
  18. vertical-align: baseline;
  19. }
  20. :focus { outline: 0; }
  21. body {
  22. line-height: 1;
  23. margin: 0;
  24. font-size: small;
  25. }
  26. ol, ul { list-style: none; }
  27. table {
  28. border-collapse: separate;
  29. border-spacing: 0;
  30. }
  31. caption, th, td {
  32. text-align: left;
  33. font-weight: normal;
  34. }
  35. blockquote:before, blockquote:after, q:before, q:after {content: ""; }
  36. blockquote, q { quotes: "" ""; }
  37. img { border: 0 }
  38.  
  39. /* GENERAL STYLES */
  40.  
  41. img{ behavior: url(../js/iepngfix.htc); }
  42. .hover{ cursor: pointer; }
  43. .no_show{ display: none; }
  44. .clearer{ clear: both; }
  45. .underline{ text-decoration: underline !important; }
  46. .flt_left{ float: left; }

Report this snippet  

You need to login to post a comment.