General default stylesheet (apply after reset)


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



Copy this code and paste it in your HTML
  1. BODY,
  2. HTML{
  3. color: #333;
  4. font-family: helvetica, arial, sans-serif;
  5. font-size: 12px;
  6. line-height: 1.4em;
  7. }
  8.  
  9. P{ margin: 0 0 20px 0; }
  10. H1{
  11. font-size: 23px;
  12. margin: 0 0 20px 0;
  13. }
  14. H2{
  15. font-size: 20px;
  16. margin: 0 0 20px;
  17. }
  18. H3{
  19. font-size: 1.17em;
  20. font-weight: bolder;
  21. margin: 0 0 15px 0;
  22. }
  23. H4{
  24. font-weight: bolder;
  25. margin: 0 0 10px 0;
  26. }
  27. H5{
  28. font-size: .83em;
  29. font-weight: bolder;
  30. margin: 0 0 10px 0;
  31. }
  32. H6{
  33. font-size: .75em;
  34. font-weight: bolder;
  35. margin: 0 0 10px 0;
  36. }
  37.  
  38. A{ color: blue; }
  39.  
  40. STRONG{ font-weight: bold; }
  41. EM{ font-style: italic; }
  42.  
  43. HR{ border: none; border-bottom: 1px solid #333; }
  44.  
  45. OL{ margin: 1.12em 0 1.12em 40px; }
  46. OL LI{
  47. list-style: decimal outside;
  48. margin: 0; padding: 0;
  49. }
  50.  
  51. UL{ margin: 1.12em 0 1.12em 40px; }
  52. UL LI{
  53. list-style: disc outside;
  54. margin: 0; padding: 0;
  55. }
  56.  
  57. PRE{ font-family: monospace; white-space: pre; }
  58. BLOCKQUOTE{ margin: 1.12em 40px 1.12em 40px; }
  59.  
  60. INPUT[type=text],
  61. INPUT[type=password]{
  62. border: 1px solid #BBB;
  63. color: #333;
  64. font-family: helvetica, arial, sans-serif;
  65. font-size: 12px;
  66. }
  67. TEXTAREA{
  68. border: 1px solid #BBB;
  69. color: #333;
  70. font-family: 'helvetica neue', helvetica, arial, sans-serif;
  71. font-size: 12px;
  72. }
  73. INPUT[type=submit],
  74. INPUT[type=button]{
  75. }
  76. INPUT[type=submit]:hover,
  77. INPUT[type=button]:hover{
  78. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.