Posted By

mzym on 09/22/09


Tagged

css clearfix reset kickstart


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

shanelemon


Global Reset and clearfix


 / Published in: CSS
 

  1. /***********************************************************
  2.  Global Reset
  3. ************************************************************/
  4.  
  5. *, html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, label, fieldset, input, p, blockquote, th, td { margin:0; padding:0 }
  6. table { border-collapse:collapse; border-spacing:0 }
  7. fieldset, img { border:0 }
  8. legend { display:none; }
  9. address, caption, cite, code, dfn, em, strong, th, var { font-style:normal; font-weight:normal }
  10. ul { list-style:none }
  11. caption, th { text-align:left }
  12. h1, h2, h3, h4, h5, h6 { font-size:100%; font-weight: normal; }
  13. q:before, q:after { content:'' }
  14. a { text-decoration:none }
  15. strong { font-weight:bold }
  16. em { font-style:italic }
  17. * a { position:relative }
  18. a img { border:none }
  19. * { outline: none; }
  20. form { display:inline; }
  21.  
  22. /***********************************************************
  23.  Site
  24. ************************************************************/
  25.  
  26. html {
  27. font-size: 62.5%;
  28. font-weight: normal;
  29. font-family: "Arial", Tahoma, Verdana, Arial, sans-serif;
  30. }
  31.  
  32.  
  33.  
  34. .clearfix:after, .container:after {
  35. clear: both;
  36. content: ".";
  37. display: block;
  38. height: 0;
  39. visibility: hidden;
  40. }
  41.  
  42. .clear {
  43. clear: both;
  44. line-height: 0;
  45. }

Report this snippet  

You need to login to post a comment.