Posted By

adamcbrewer on 02/09/11


Tagged

css reset


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

adamcbrewer
weborganisator
robotici


CSS Reset


 / Published in: CSS
 

URL: http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/

Reset stylesheet with added clearfix

  1. /* http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */
  2. html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, font, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td {margin: 0;padding: 0;border: 0;outline: 0;font-size: 100%;vertical-align: baseline;background: transparent;}
  3. body {}
  4. ol, ul {list-style: none;}
  5. blockquote, q {quotes: none;}
  6. /* remember to define focus styles! */
  7. :focus {outline: 0;}
  8. /* remember to highlight inserts somehow! */
  9. ins {text-decoration: none;}
  10. del {text-decoration: line-through;}
  11. /* tables still need 'cellspacing="0"' in the markup */
  12. table {border-collapse: collapse;border-spacing: 0;}
  13. a {text-decoration: none;color:#000;}
  14. a:hover {text-decoration: underline;}
  15.  
  16. /* =Clearfix (all browsers)--------------------------------*/
  17. .clearfix:after {content: ".";display: block;height: 0;clear: both;visibility:hidden;}
  18. .clearfix {display:block;clear:both;}
  19. * html .clearfix {height: 1%;overflow:visible;} /* IE6 */
  20. *:first-child+html .clearfix {min-height: 1px;} /* IE7 */
  21. html[xmlns] .cleafix {display:block;} /* Other */

Report this snippet  

You need to login to post a comment.