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

sendoa on 05/02/07


Tagged

resetundo


Versions (?)


Who likes this?

8 people have marked this snippet as a favorite

jonhenshaw
basicmagic
tayles
n00ge
fael
marcoba
tedoe
JimiJay


Reset CSS de Eric Meyer


Published in: CSS 


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

  1. /* Reset CSS de Eric Meyer */
  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. dl, dt, dd, ol, ul, li,
  9. fieldset, form, label, legend,
  10. table, caption, tbody, tfoot, thead, tr, th, td {
  11. margin: 0;
  12. padding: 0;
  13. border: 0;
  14. outline: 0;
  15. font-weight: inherit;
  16. font-style: inherit;
  17. font-size: 100%;
  18. font-family: inherit;
  19. vertical-align: baseline;
  20. background: transparent;
  21. }
  22. /* remember to define focus styles! */
  23. :focus {
  24. outline: 0;
  25. }
  26. body {
  27. line-height: 1;
  28. color: black;
  29. background: white;
  30. }
  31. ol, ul {
  32. list-style: none;
  33. }
  34. /* tables still need 'cellspacing="0"' in the markup */
  35. table {
  36. border-collapse: collapse;
  37. border-spacing: 0;
  38. }
  39. caption, th, td {
  40. text-align: left;
  41. font-weight: normal;
  42. }
  43. blockquote:before, blockquote:after,
  44. q:before, q:after {
  45. content: "";
  46. }
  47. blockquote, q {
  48. quotes: "" "";
  49. }

Report this snippet 

You need to login to post a comment.