We Recommend

C++ The Core Language C++ The Core Language
C++: The Core Language is for C programmers transitioning to C++. It's designed to get readers up to speed quickly by covering an essential subset of the language. The subset consists of features without which it's just not C++, and a handful of others that make it a reasonably useful language.


Posted By

soxiam on 05/02/07


Tagged

css browser reset compatibility


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

basicmagic
Mikker
esquareda


eric meyer's reset css


Published in: Other 


  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. background: transparent;
  19. }
  20. /* remember to define focus styles! */
  21. :focus {
  22. outline: 0;
  23. }
  24. body {
  25. line-height: 1;
  26. color: black;
  27. background: white;
  28. }
  29. ol, ul {
  30. list-style: none;
  31. }
  32. /* tables still need 'cellspacing="0"' in the markup */
  33. table {
  34. border-collapse: collapse;
  35. border-spacing: 0;
  36. }
  37. caption, th, td {
  38. text-align: left;
  39. font-weight: normal;
  40. }
  41. blockquote:before, blockquote:after,
  42. q:before, q:after {
  43. content: "";
  44. }
  45. blockquote, q {
  46. quotes: "" "";
  47. }

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: jonhenshaw on May 2, 2007

Instead of "Other", how about setting the category to "CSS" so the code can be color coded.

You need to login to post a comment.