my HTML 5 css reset


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

my HTML 5 css reset


Copy this code and paste it in your HTML
  1. /*= Reset =*/
  2. body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
  3. ol,ul{list-style:none;}
  4. img,fieldset{border:0 none;}
  5. *:focus{outline:0;}
  6. h1,h2,h3,h4,h5,h6{font-size:100%;}
  7. button,input,optgroup,select,textarea{font-size:100%;font-family:inherit;font-weight:inherit;}
  8. pre,code{font-family:"Droid Sans Mono",monospace;}
  9.  
  10. /*= HTML 5 =*/
  11. article,aside,audio,canvas,command,datalist,details,dialog,embed,figcaption,figure,footer,header,hgroup,keygen,menu,nav,output,progress,section,source,video{display:block;}
  12. m,meter,rp,rt,ruby,summary,time{display:inline;}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.