Posted By

brianyang on 12/08/09


Tagged


Versions (?)

normalize browser styles


 / Published in: CSS
 

  1. /* Normalizes margin, padding */
  2. body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td
  3. { margin : 0; padding : 0; }
  4.  
  5. /* Normalizes font-size for headers */
  6. h1,h2,h3,h4,h5,h6 { font-size : 100%; }
  7.  
  8. /* Removes list-style from lists */
  9. ol,ul { list-style : none; }
  10.  
  11. /* Normalizes font-style and font-weight to normal */
  12. address, caption, cite, code, dfn, em, strong, th, var
  13. { font-style : normal; font-weight : normal; }
  14.  
  15. /* Removes list-style from lists */
  16. table { border-collapse : collapse; border-spacing : 0; }
  17.  
  18. /* Removes border from fieldset and img */
  19. fieldset,img { border : 0; }
  20.  
  21. /* Left-aligns text in caption and th */
  22. caption,th { text-align : left; }
  23.  
  24. /* Removes quotation marks from q */
  25. body{text-align:center}

Report this snippet  

You need to login to post a comment.