http://meyerweb.com/eric/tools/css/reset/
The goal of a reset stylesheet is-to-reduce browser inconsistencies in things like default line heights, margins and font Sizes of headings, and so on. The general reasoning behind this is discussed in a could post, if you ' re interested. Reset styles quite often appear in CSS frameworks, and the original "Meyerweb reset" found it's to into Blueprint, among O Thers.
The reset styles given here is intentionally very generic. There isn ' t any default color or background set body
for the element, for example. I don ' t particularly recommend that's just use the IT unaltered state in your own projects. It should is tweaked, edited, extended, and otherwise tuned to match your specific reset baseline. Fill in your preferred colors-the page, links, and so on.
In the other words, this is a starting point and not a self-contained black box of no-touchiness.
If you want to use my reset styles and then feel free! It's all explicitly on the public domain (I had to formally say, or else people ask me about licensing). You can grab a copy of the file to use and tweak as fits. If you're more than the copy-and-paste type, or just want an in-page preview of what's you'll be getting, here it's.
/* http://meyerweb.com/eric/tools/css/reset/v2.0 | 20110126 license:none (public domain) */html, body, Div, span, applet, object, IFRAME,H1, H2, H3, H4, H5, H6, p, Blockqu OTE, PRE,A, ABBR, acronym, address, Big, cite, Code,del, DFN, EM, img, INS, KBD, Q, S, Samp,small, Strike, strong, sub, Su P, TT, VAR,B, u, I, CENTER,DL, DT, DD, OL, UL, Li,fieldset, form, label, Legend,table, Caption, Tbody, TFOOT, THEAD, tr, t H, td,article, aside, canvas, details, embed, figure, figcaption, footer, Header, Hgroup, menu, nav, output, Ruby, section , Summary,time, mark, audio, video {Margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline ;} /* HTML5 Display-role reset for older browsers */article, aside, details, figcaption, figure, Footer, Header, Hgroup, menu , nav, section {display:block;} body {line-height:1;} OL, ul {list-style:none;} BLOCKQUOTE, q {quotes:none;} Blockquote:before, Blockquote:after,q:before, q:after {content: '; content:none;} Table {Border-collapse:collapse;border-spacing:0;}
Previous Versions
- v1.0 (200802)
Acknowledgments
Thanks to Paul Chaplin for the blockquote
/ q
rules.
Reproduced CSS Tools:reset CSS