We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

mifly on 02/28/08


Tagged

css


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

ozskry
adix
gbot
angstmann


reset css


Published in: CSS 


http://meyerweb.com/eric/tools/css/reset/

  1. /* v1.0 | 20080212 */
  2.  
  3. html, body, div, span, applet, object, iframe,
  4. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  5. a, abbr, acronym, address, big, cite, code,
  6. del, dfn, em, font, img, ins, kbd, q, s, samp,
  7. small, strike, strong, sub, sup, tt, var,
  8. b, u, i, center,
  9. dl, dt, dd, ol, ul, li,
  10. fieldset, form, label, legend,
  11. table, caption, tbody, tfoot, thead, tr, th, td {
  12. margin: 0;
  13. padding: 0;
  14. border: 0;
  15. outline: 0;
  16. font-size: 100%;
  17. vertical-align: baseline;
  18. background: transparent;
  19. }
  20. body {
  21. line-height: 1;
  22. }
  23. ol, ul {
  24. list-style: none;
  25. }
  26. blockquote, q {
  27. quotes: none;
  28. }
  29. blockquote:before, blockquote:after,
  30. q:before, q:after {
  31. content: '';
  32. content: none;
  33. }
  34.  
  35. /* remember to define focus styles! */
  36. :focus {
  37. outline: 0;
  38. }
  39.  
  40. /* remember to highlight inserts somehow! */
  41. ins {
  42. text-decoration: none;
  43. }
  44. del {
  45. text-decoration: line-through;
  46. }
  47.  
  48. /* tables still need 'cellspacing="0"' in the markup */
  49. table {
  50. border-collapse: collapse;
  51. border-spacing: 0;
  52. }

Report this snippet 

You need to login to post a comment.