Posted By

polly42 on 12/17/10


Tagged

css reset


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

DCalabrese
AtticBoy
robotici


HTML5-ready reset stylesheet


 / Published in: CSS
 

(Eric Meyer's Reset Reloaded + HTML5 baseline)

  1. html, body, div, span, object, iframe,
  2. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  3. abbr, address, cite, code,
  4. del, dfn, em, img, ins, kbd, q, samp,
  5. small, strong, sub, sup, var,
  6. b, i,
  7. dl, dt, dd, ol, ul, li,
  8. fieldset, form, label, legend,
  9. table, caption, tbody, tfoot, thead, tr, th, td,
  10. article, aside, figure, footer, header, hgroup, menu, nav, section, menu,
  11. time, mark, audio, video {
  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. article, aside, figure, footer, header,
  22. hgroup, nav, section {
  23. display: block;
  24. }
  25.  
  26. nav ul {
  27. list-style: none;
  28. }
  29.  
  30. blockquote, q {
  31. quotes: none;
  32. }
  33.  
  34. blockquote:before, blockquote:after,
  35. q:before, q:after {
  36. content: '';
  37. content: none;
  38. }
  39.  
  40. a {
  41. margin: 0;
  42. padding: 0;
  43. font-size: 100%;
  44. vertical-align: baseline;
  45. background: transparent;
  46. }
  47.  
  48. ins {
  49. background-color: #ff9;
  50. color: #000;
  51. text-decoration: none;
  52. }
  53.  
  54. mark {
  55. background-color: #ff9;
  56. color: #000;
  57. font-style: italic;
  58. font-weight: bold;
  59. }
  60.  
  61. del {
  62. text-decoration: line-through;
  63. }
  64.  
  65. abbr[title], dfn[title] {
  66. border-bottom: 1px dotted #000;
  67. cursor: help;
  68. }
  69.  
  70. /* tables still need cellspacing="0" in the markup */
  71. table {
  72. border-collapse: collapse;
  73. border-spacing: 0;
  74. }
  75.  
  76. hr {
  77. display: block;
  78. height: 1px;
  79. border: 0;
  80. border-top: 1px solid #ccc;
  81. margin: 1em 0;
  82. padding: 0;
  83. }
  84.  
  85. input, select {
  86. vertical-align: middle;
  87. }

Report this snippet  

You need to login to post a comment.