HTML5 Stylesheet Reset


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



Copy this code and paste it in your HTML
  1. html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
  2. margin:0;
  3. padding:0;
  4. border:0;
  5. outline:0;
  6. font-size:100%;
  7. vertical-align:baseline;
  8. background:transparent;
  9. }
  10. body {
  11. line-height:1;
  12. }
  13. article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  14. display:block;
  15. }
  16. nav ul {
  17. list-style:none;
  18. }
  19. blockquote, q {
  20. quotes:none;
  21. }
  22. blockquote:before, blockquote:after, q:before, q:after {
  23. content:'';
  24. content:none;
  25. }
  26. a {
  27. margin:0;
  28. padding:0;
  29. font-size:100%;
  30. vertical-align:baseline;
  31. background:transparent;
  32. }/* change colours to suit your needs */
  33. ins {
  34. background-color:#ff9;
  35. color:#000;
  36. text-decoration:none;
  37. }/* change colours to suit your needs */
  38. mark {
  39. background-color:#ff9;
  40. color:#000;
  41. font-style:italic;
  42. font-weight:bold;
  43. }
  44. del {
  45. text-decoration: line-through;
  46. }
  47. abbr[title], dfn[title] {
  48. border-bottom:1px dotted;
  49. cursor:help;
  50. }
  51. table {
  52. border-collapse:collapse;
  53. border-spacing:0;
  54. }/* change border colour to suit your needs */
  55. hr {
  56. display:block;
  57. height:1px;
  58. border:0;
  59. border-top:1px solid #cccccc;
  60. margin:1em 0;
  61. padding:0;
  62. }
  63. input, select {
  64. vertical-align:middle;
  65. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.