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

indianocean on 06/08/07


Tagged

css template


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

basicmagic
duandan
stoker


CSS Template reseting browser defaults 2


Published in: CSS 


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

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

Report this snippet 

You need to login to post a comment.