Posted By

jdmyers on 01/06/10


Tagged

css


Versions (?)

CSS Reset


 / Published in: CSS
 

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

Report this snippet  

You need to login to post a comment.