Quick CSS Reset


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



Copy this code and paste it in your HTML
  1. /* @group Fixes */
  2.  
  3. * {
  4. margin: 0px;
  5. padding: 0px;
  6. }
  7.  
  8. html, body {
  9. font-family: Arial, Helvetica, Verdana, sans-serif;
  10. }
  11.  
  12. body {
  13. font-size: 62.5%; /* 1em = 10px */
  14. }
  15.  
  16. .clear {
  17. clear: both;
  18. }
  19.  
  20. :link,:visited {
  21. text-decoration: none
  22. }
  23.  
  24. h1,h2,h3,h4,h5,h6,pre,code {
  25. font-size: 1em;
  26. }
  27.  
  28. h1,h2, h4, h5, h6, p, blockquote,
  29. ul, ol, dl, address {
  30. margin-bottom: 0.5em;
  31. /*reset margin */
  32. }
  33.  
  34. a img,:link img,:visited img {
  35. border: none
  36. }
  37.  
  38. address {
  39. font-style: normal
  40. }
  41.  
  42. img {
  43. border-style: none;
  44. }
  45.  
  46. blockquote {
  47. margin-left: 2em;
  48. }
  49.  
  50. p {
  51. margin-bottom: 1em;
  52. text-align: left;
  53. }
  54.  
  55. h1, h2, h3, h4 {
  56. text-align: left;
  57. font-weight: bold;
  58. font-color: #333;
  59. font-family: Helvetica, Arial, Verdana, sans-serif;
  60. }
  61.  
  62. h1 {
  63. font-size: 1.8em;
  64. }
  65.  
  66. h2 {
  67. font-size: 1.6em;
  68. }
  69.  
  70. h3 {
  71. font-size: 1.4em;
  72. }
  73.  
  74. h4 {
  75. font-size: 1.2 em;
  76.  
  77. }
  78.  
  79. a:link, a:visited {
  80. color: #666;
  81. }
  82.  
  83. a:hover, a:active {
  84. color: #000;
  85. }
  86.  
  87. th, td, li, li li, li p, td p, blockquote p {
  88. font-size: 1em;
  89. }
  90.  
  91.  
  92. /* @end */

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.