eric meyer css reset and other essential css


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

the eric meyer "reset" css code


Copy this code and paste it in your HTML
  1. html, body, div, span, applet, object, iframe,
  2. 02
  3. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  4. 03
  5. a, abbr, acronym, address, big, cite, code,
  6. 04
  7. del, dfn, em, font, img, ins, kbd, q, s, samp,
  8. 05
  9. small, strike, strong, sub, sup, tt, var,
  10. 06
  11. b, u, i, center,
  12. 07
  13. dl, dt, dd, ol, ul, li,
  14. 08
  15. fieldset, form, label, legend,
  16. 09
  17. table, caption, tbody, tfoot, thead, tr, th, td {
  18. 10
  19. margin: 0;
  20. 11
  21. padding: 0;
  22. 12
  23. border: 0;
  24. 13
  25. outline: 0;
  26. 14
  27. font-size: 100%;
  28. 15
  29. vertical-align: baseline;
  30. 16
  31. background: transparent;
  32. 17
  33. }
  34. 18
  35.  
  36. 19
  37. body {
  38. 20
  39. line-height: 1;
  40. 21
  41. }
  42. 22
  43.  
  44. 23
  45. ol, ul {
  46. 24
  47. list-style: none;
  48. 25
  49. }
  50. 26
  51.  
  52. 27
  53. blockquote, q {
  54. 28
  55. quotes: none;
  56. 29
  57. }
  58. 30
  59.  
  60. 31
  61. blockquote:before, blockquote:after,
  62. 32
  63. q:before, q:after {
  64. 33
  65. content: '';
  66. 34
  67. content: none;
  68. 35
  69. }
  70. 36
  71.  
  72. 37
  73. /* remember to define focus styles! */
  74. 38
  75. :focus {
  76. 39
  77. outline: 0;
  78. 40
  79. }
  80. 41
  81.  
  82. 42
  83. /* remember to highlight inserts somehow! */
  84. 43
  85. ins {
  86. 44
  87. text-decoration: none;
  88. 45
  89. }
  90. 46
  91.  
  92. 47
  93. del {
  94. 48
  95. text-decoration: line-through;
  96. 49
  97. }
  98. 50
  99.  
  100. 51
  101. /* tables still need 'cellspacing="0"' in the markup */
  102. 52
  103. table {
  104. 53
  105. border-collapse: collapse;
  106. 54
  107. border-spacing: 0;
  108. 55
  109. }

URL: http://www.djavupixel.com/development/css-development/master-css3-ultimate-css-code-snippets/

Report this snippet


Comments


You need to login to view comments.