CSS Reset Code

Source: Internet
Author: User

Why to reset CSS styles at development time:
The initial standards of each browser are different, so to be compatible with the initial browser CSS style, the current more practical global initialization of CSS is:

Eric Meyer reset css and YUI reset CSS


I use: Eric Meyer Reset CSS

HTML, body, Div, span, applet, object, IFRAME,
H1, H2, H3, H4, H5, H6, p, blockquote, Pre,
A, ABBR, acronym, address, big, cite, code,
Del, DFN, EM, Font, IMG, ins, KBD, Q, S, Samp,
Small, strike, strong, sub, SUP, TT, VAR,
b, u, I, center,
DL, DT, DD, OL, UL, Li,
FieldSet, form, label, legend,
Table, Caption, Tbody, TFOOT, THEAD, tr, TH, TD {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
Vertical-align:baseline;
Background:transparent;
}
Body {
Line-height:1;
}
OL, UL {
List-style:none;
}
BLOCKQUOTE, Q {
Quotes:none;
}
Blockquote:before, Blockquote:after,
Q:before, Q:after {
Content: ";
Content:none;
}
/* Remember to define focus styles! */
: Focus {
outline:0;
}
/* Remember to highlight inserts somehow! */
INS {
Text-decoration:none;
}
del {
Text-decoration:line-through;
}
/* Tables still need ' cellspacing= "0" ' in the markup * *
Table {
Border-collapse:collapse;
border-spacing:0;
}

CSS Reset Code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.