reset.css 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* --------------------------------------------------------------
  2. reset.css
  3. * Resets default browser CSS.
  4. -------------------------------------------------------------- */
  5. html {
  6. margin:0;
  7. padding:0;
  8. border:0;
  9. }
  10. body, div, span, object, iframe,
  11. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  12. a, abbr, acronym, address, code,
  13. del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
  14. fieldset, form, label, legend,
  15. table, caption, tbody, tfoot, thead, tr, th, td,
  16. article, aside, dialog, figure, footer, header,
  17. hgroup, nav, section {
  18. margin: 0;
  19. padding: 0;
  20. border: 0;
  21. font-weight: inherit;
  22. font-style: inherit;
  23. font-size: 100%;
  24. font-family: inherit;
  25. vertical-align: baseline;
  26. }
  27. /* This helps to make newer HTML5 elements behave like DIVs in older browers */
  28. article, aside, dialog, figure, footer, header,
  29. hgroup, nav, section {
  30. display:block;
  31. }
  32. /* Line-height should always be unitless! */
  33. body {
  34. line-height: 1.5;
  35. background: white;
  36. }
  37. /* Tables still need 'cellspacing="0"' in the markup. */
  38. table {
  39. border-collapse: separate;
  40. border-spacing: 0;
  41. }
  42. /* float:none prevents the span-x classes from breaking table-cell display */
  43. caption, th, td {
  44. text-align: left;
  45. font-weight: normal;
  46. float:none !important;
  47. }
  48. table, th, td {
  49. vertical-align: middle;
  50. }
  51. /* Remove possible quote marks (") from <q>, <blockquote>. */
  52. blockquote:before, blockquote:after, q:before, q:after { content: ''; }
  53. blockquote, q { quotes: "" ""; }
  54. /* Remove annoying border on linked images. */
  55. a img { border: none; }
  56. /* Remember to define your own focus styles! */
  57. :focus { outline: 0; }