Posted By

silentpro on 01/16/11


Tagged

css textmate reset eric meyer


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

saman
sjacunningham
silverskymedia
emilbjorklund


Eric Meyer CSS Reset


 / Published in: CSS
 

  1. /* Reset by Eric Meyer http://meyerweb.com/
  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.  
  21. body {
  22. line-height: 1;
  23. }
  24.  
  25. ol, ul {
  26. list-style: none;
  27. }
  28.  
  29. blockquote, q {
  30. quotes: none;
  31. }
  32.  
  33. blockquote:before, blockquote:after,
  34. q:before, q:after {
  35. content: '';
  36. content: none;
  37. }
  38.  
  39. /* remember to define focus styles! */
  40. :focus {
  41. outline: 0;
  42. }
  43.  
  44. /* remember to highlight inserts somehow! */
  45. ins {
  46. text-decoration: none;
  47. }
  48.  
  49. del {
  50. text-decoration: line-through;
  51. }
  52.  
  53. /* tables still need 'cellspacing="0"' in the markup */
  54. table {
  55. border-collapse: collapse;
  56. border-spacing: 0;
  57. }

Report this snippet  

You need to login to post a comment.