Posted By

cbx on 11/28/08


Tagged

css reset


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jeremyhcobb


CSS Reset


 / Published in: CSS
 

This is what I commonly use for my base CSS file.

  1. /*------------------------------------------------------------------
  2. Name Of CSS File
  3. Last Updated: Date Here
  4.  
  5. 0. CSS RESETS
  6.  
  7. 1. STYLING
  8.  
  9.  
  10. 2. HEADER
  11. 2.1. Top Menu Text
  12.  
  13.  
  14. 3. CONTENT AND BODY
  15. 3.1 Put Sub Category Here
  16.  
  17.  
  18. 4. FOOTER
  19. 4.1 Put Sub Category Here
  20.  
  21.  
  22. 5. MISC
  23. -------------------------------------------------------------------*/
  24.  
  25.  
  26.  
  27. /* 0. CSS RESETS
  28. ---------------------------------------------------------------------
  29. */
  30.  
  31. body, address, blockquote, dl, ol, ul, li, form, fieldset, h1, h2, h3, h4, h5, h6, p, pre, object, embed {
  32. margin:0;
  33. padding:0;
  34. }
  35.  
  36. fieldset, table {
  37. border:none;
  38. }
  39.  
  40. table {
  41. border-collapse:collapse;
  42. border-spacing:0;
  43. overflow:hidden;
  44. word-wrap:break-word; /* will not validate IE only */
  45. }
  46.  
  47. caption, th, td {
  48. text-align: left;
  49. }
  50.  
  51. html {
  52. font-size:100.01%;
  53. height: 101%; /* forces scroll on short length pages */
  54. }
  55.  
  56. body {
  57. height:100%;
  58. font:62.5%/1.3 Arial,Tahoma,Geneva,Helvetica,sans-serif;
  59. background:#FFF;
  60. }
  61.  
  62. address, h1, h2, h3, h4, h5, h6, li, p, pre {padding: .3em 10px .8em;}
  63.  
  64. .float_right {
  65. float:right;
  66. }
  67.  
  68. .clear_left {
  69. clear:left;
  70. }
  71.  
  72. .clear_both {
  73. clear:both;
  74. }

Report this snippet  

You need to login to post a comment.