Posted By

daipratt on 12/29/09


Tagged

css reset


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

ions
robotici
StephenOdieleHarlow


Reset StyleSheet that includes HTML5 elements


 / Published in: CSS
 

  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, dialog, figure, footer, header,
  11. hgroup, menu, nav, section,
  12. time, mark, audio, video {
  13. margin:0;
  14. padding:0;
  15. border:0;
  16. outline:0;
  17. font-size:100%;
  18. vertical-align:baseline;
  19. background:transparent;
  20. }
  21. body {
  22. line-height:1;
  23. }
  24.  
  25. article, aside, dialog, figure, footer, header, hgroup, nav, section {
  26. display:block;
  27. }
  28.  
  29. nav ul {
  30. list-style:none;
  31. }
  32.  
  33. blockquote, q {
  34. quotes:none;
  35. }
  36.  
  37. blockquote:before, blockquote:after,
  38. q:before, q:after {
  39. content:'';
  40. content:none;
  41. }
  42.  
  43. a, a:link, a:hover, a:active{
  44. margin:0;
  45. padding:0;
  46. border:0;
  47. outline:0;
  48. font-size:100%;
  49. vertical-align:baseline;
  50. }
  51.  
  52. ins {
  53. background-color:#ff9;
  54. color:#000;
  55. text-decoration:none;
  56. }
  57.  
  58. mark {
  59. background-color:#ff9;
  60. color:#000;
  61. font-style:italic;
  62. font-weight:bold;
  63. }
  64.  
  65. del {
  66. text-decoration: line-through;
  67. }
  68.  
  69. abbr[title], dfn[title] {
  70. border-bottom:1px dotted #000;
  71. cursor:help;
  72. }
  73.  
  74. table {
  75. border-collapse:collapse;
  76. border-spacing:0;
  77. }
  78.  
  79. hr {
  80. display:block;
  81. height:1px;
  82. border:0;
  83. border-top:1px solid #cccccc;
  84. margin:1em 0;
  85. padding:0;
  86. }
  87.  
  88. input, select {
  89. vertical-align:middle;
  90. }

Report this snippet  

You need to login to post a comment.