CSS Reset Reloaded Again

Here is a new reset file that should reset all visual defaults in user agents. That includes anchor colors, deprecated tags, form defaults, etc:

  1. * { margin: 0; padding: 0; text-decoration: none; font-size: 100%; outline: none; }
  2. code, kbd, samp, pre, tt, var, textarea, input, select, isindex { font: inherit; font-size: 1em; }
  3. dfn, i, cite, var, address, em { font-style: normal; }
  4. th, b, strong, h1, h2, h3, h4, h5, h6 { font-weight: normal; }
  5. a, img, a img, iframe, form, fieldset, abbr, acronym, object, applet { border: none; }
  6. table { border-collapse: collapse; border-spacing: 0; }
  7. caption, th, td, center { text-align: left; vertical-align: top; }
  8. body { line-height: 1em; background: white; }
  9. q { quotes: "" ""; }
  10. ul, ol, dir, menu { list-style: none; }
  11. sub, sup { vertical-align: baseline; }
  12. a { color: inherit; }

Note: Since IE6 (and IE7 to some extent) has problems with inheritance, the mono-type font face will still show for some tags, even though it shouldn’t. This also applies to the color inheritance for anchors. You could get around this by hacking yourself into the style sheet, but I prefer not to.