Posted By

irishspacemonk on 06/26/09


Tagged

css reset Normalizing


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

irishspacemonk
redimagine


Reset CSS


 / Published in: CSS
 

Resets all of the built in browser parameters

  1. /*************************************************************************/
  2. /* NORMALIZING PADDING, ETC */
  3. /*************************************************************************/
  4. body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td {
  5. margin: 0;
  6. padding: 0;
  7. }
  8.  
  9. /* Normalizes font-sizes for header */
  10. h1, h2, h3, h4, h5, h6 {
  11. font-size: 100%;
  12. }
  13.  
  14. /* Removes list-style from lists */
  15. ol, ul {
  16. list-style: none;
  17. }
  18.  
  19. /* Normalizes font-style and font-weiht to normal */
  20. address, caption, cite, code, dfn, em, strong, th, var {
  21. font-style:normal;
  22. font-weight: normal;
  23. }
  24.  
  25. /* Removes borders and spacing from tables */
  26. table {
  27. border-collapse:collapse;
  28. border-spacing: 0;
  29. }
  30.  
  31. /* Removes border from fieldset and img */
  32. fieldset, img {
  33. border: 0;
  34. }
  35.  
  36. /* Left-aligns text in caption and th */
  37. caption, th {
  38. text-align:left;
  39. }
  40.  
  41. /* Removes quotation marks from q */
  42. q:before, q:after {
  43. content: no-open-quote;
  44. content: no-close-quote;
  45. }

Report this snippet  

You need to login to post a comment.