Posted By

josephfritz on 08/26/08


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

antpaw


Reset CSS


 / Published in: CSS
 

  1. html, body, div, span, applet, object, iframe,
  2. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  3. a, abbr, acronym, address, big, cite, code,
  4. del, dfn, em, font, img, ins, kbd, q, s, samp,
  5. small, strike, strong, sub, sup, tt, var,
  6. b, u, i, center,
  7. dl, dt, dd, ol, ul, li,
  8. fieldset, form, label, legend,
  9. table, caption, tbody, tfoot, thead, tr, th, td {
  10. margin: 0;
  11. padding: 0;
  12. border: 0;
  13. outline: 0;
  14. font-size: 100%;
  15. vertical-align: baseline;
  16. background: transparent;
  17. }
  18.  
  19. body {
  20. line-height: 1;
  21. }
  22.  
  23. ol, ul {
  24. list-style: none;
  25. }
  26.  
  27. blockquote, q {
  28. quotes: none;
  29. }
  30.  
  31. /* remember to define focus styles! */
  32. :focus {
  33. outline: 0;
  34. }
  35.  
  36. /* remember to highlight inserts somehow! */
  37. ins {
  38. text-decoration: none;
  39. }
  40.  
  41. del {
  42. text-decoration: line-through;
  43. }
  44.  
  45. /* tables still need 'cellspacing="0"' in the markup */
  46. table {
  47. border-collapse: collapse;
  48. border-spacing: 0;
  49. }
  50.  
  51. /* -------- CLEARFIX -------- */
  52. .clearfix:after {
  53. content: ".";
  54. display: block;
  55. height: 0;
  56. clear: both;
  57. visibility: hidden;
  58. }
  59.  
  60. * html>body .clearfix {
  61. display: inline-block;
  62. width: 100%;
  63. }
  64.  
  65. * html .clearfix {
  66. /* Hide from IE-mac \*
  67. height: 1px;
  68. /* End hide from IE-mac */
  69. }
  70.  
  71. .clearfix {
  72. zoom: 1;
  73. }
  74. /* -------- END CLEARFIX -------- */

Report this snippet  

You need to login to post a comment.