CSS reset code Summary

Source: Internet
Author: User
The most simplified and commonly used Reset

* {Padding: 0; margin: 0; Border: 0 ;}

 

Yui reset CSS

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,
form,fieldset,input,textarea,p,blockquote,th,td {
padding: 0;
margin: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset,img {
border: 0;
}
address,caption,cite,code,dfn,em,strong,th,var {
font-weight: normal;
font-style: normal;
}
ol,ul {
list-style: none;
}
caption,th {
text-align: left;
}
h1,h2,h3,h4,h5,h6 {
font-weight: normal;
font-size: 100%;
}
q:before,q:after {
content:”;
}
abbr,acronym { border: 0;
}

Ateneu popular CSS Reset

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, 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-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
:focus { outline: 0;}
a, a:link, a:visited, a:hover, a:active{text-decoration:none}
table { border-collapse: separate;border-spacing: 0;}
th, td {text-align: left; font-weight: normal;}
img, iframe {border: none; text-decoration:none;}
ol, ul {list-style: none;}
input, textarea, select, button {font-size: 100%;font-family: inherit;}
select {margin: inherit;}
hr {margin: 0;padding: 0;border: 0;color: #000;background-color: #000;height: 1px}

Chris Poteet's reset CSS

* {
vertical-align: baseline;
font-family: inherit;
font-style: inherit;
font-size: 100%;
border: none;
padding: 0;
margin: 0;
}
body {
padding: 5px;
}
h1, h2, h3, h4, h5, h6, p, pre, blockquote, form, ul, ol, dl {
margin: 20px 0;
}
li, dd, blockquote {
margin-left: 40px;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

Eric Meyer reset CSS

html, body, div, span, applet, object, iframe, table, caption,
tbody, tfoot, thead, tr, th, td, del, dfn, em, font, img, ins,
kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,
acronym, address, big, cite, code, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend {
vertical-align: baseline;
font-family: inherit;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
outline: 0;
padding: 0;
margin: 0;
border: 0;
}
:focus {
outline: 0;
}
body {
background: white;
line-height: 1;
color: black;
}
ol, ul {
list-style: none;
}
table {
border-collapse: separate;
border-spacing: 0;
}
caption, th, td {
font-weight: normal;
text-align: left;
}
blockquote:before, blockquote:after, q:before, q:after {
content: "";
}
blockquote, q {
quotes: "" "";
}

Tantek Celik reset CSS

: Link,: visited {text-Decoration: None}
Ul, Ol {list-style: None}
H1, H2, H3, H4, H5, H6, pre, code {font-size: 1em ;}
Ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input
{Margin: 0; padding: 0}
A img,: link img,: visited img {border: none}
Address {font-style: normal}

 

Christian Montoya reset CSS

Html, body, form, fieldset {
Margin: 0;
Padding: 0;
Font: 100%/120% Verdana, Arial, Helvetica, sans-serif;
}
H1, h2, h3, h4, h5, h6, p, pre,
Blockquote, ul, ol, dl, address {
Margin: 1em 0;
Padding: 0;
}
Li, dd, blockquote {
Margin-left: 1em;
}
Form label {
Cursor: pointer;
}
Fieldset {
Border: none;
}
Input, select, textarea {
Font-size: 100%;
Font-family: inherit;
}

 

Rudeworks reset CSS

*{
Margin: 0;
Padding: 0;
Border: none;
}
HTML {
Font: 62.5% "lucida Grande", lucida, verdana, sans-serif;
Text-Shadow: #000 0px 0px 0px;
}
Ul {
List-style: none;
List-style-type: none;
}
H1, H2, H3, H4, H5, H6, P, pre,
BLOCKQUOTE, UL, ol, DL, address {
Font-weight: normal;
Margin: 0 0 1em 0;
}
Cite, em, dfn {
Font-style: italic;
}
Sup {
Position: relative;
Bottom: 0.3em;
Vertical-align: baseline;
}
Sub {
Position: relative;
Bottom:-0.2em;
Vertical-align: baseline;
}
Li, dd, blockquote {
Margin-left: 1em;
}
Code, kbd, samp, pre, tt, var, input [type = 'text'], textarea {
Font-size: 100%;
Font-family: monaco, "Lucida Console", courier, mono-space;
}
Del {
Text-decoration: line-through;
}
Ins, dfn {
Border-bottom: 1px solid # ccc;
}
Small, sup, sub {
Font-size: 85%;
}
Abbr, acronym {
Text-transform: uppercase;
Font-size: 85%;
Letter-spacing:. 1em;
Border-bottom-style: dotted;
Border-bottom-width: 1px;
}
A abbr, a acronym {
Border: none;
}
Sup {
Vertical-align: super;
}
Sub {
Vertical-align: sub;
}
H1 {
Font-size: 2em;
}
H2 {
Font-size: 1.8em;
}
H3 {
Font-size: 1.6em;
}
H4 {
Font-size: 1.4em;
}
H5 {
Font-size: 1.2em;
}
H6 {
Font-size: 1em;
}
A, a: link, a: visited, a: hover, a: active {
Outline: 0;
Text-decoration: none;
}
A img {
Border: none;
Text-decoration: none;
}
Img {
Border: none;
Text-Decoration: none;
}
Label, button {
Cursor: pointer;
}
Input: focus, select: focus, textarea: Focus {
Background-color: # FFF;
}
Fieldset {
Border: none;
}
. Clear {
Clear: both;
}
. Float-left {
Float: left;
}
. Float-right {
Float: right;
}
Body {
Text-align: center;
}
# Wrapper {
Margin: 0 auto;
Text-align: left;
}

 

Anieto2k 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, dl, dt, dd, ol, ul, li,
Fieldset, form, label, legend,
Table, caption, tbody, tfoot, thead, tr, th, td,
Center, u, B, I {
Margin: 0;
Padding: 0;
Border: 0;
Outline: 0;
Font-weight: normal;
Font-style: normal;
Font-size: 100%;
Font-family: inherit;
Vertical-align: baseline
}
Body {
Line-height: 1
}
: Focus {
Outline: 0
}
Ol, ul {
List-style: none
}
Table {
Border-collapse: collapse;
Border-spacing: 0
}
Blockquote: before, blockquote: after, q: before, q: after {
Content :""
}
Blockquote, q {
Quotes :""""
}
Input, textarea {
Margin: 0;
Padding: 0
}
Hr {
Margin: 0;
Padding: 0;
Border: 0;
Color: #000;
Background-color: #000;
Height: 1px
}

 

Csslab CSS Reset

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, 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-weight: inherit;
Font-style: inherit;
Font-size: 100%;
Font-family: inherit;
Vertical-align: baseline;
}
: Focus {
Outline: 0;
}
Table {
Border-collapse: separate;
Border-spacing: 0;
}
Caption, th, td {
Text-align: left;
Font-weight: normal;
}
A img, iframe {
Border: none;
}
Ol, ul {
List-style: none;
}
Input, textarea, select, button {
Font-size: 100%;
Font-family: Inherit;
}
Select {
Margin: Inherit;
}
/* Fixes incorrect placement of numbers in Ol's in IE6/7 */
Ol {margin-left: 2em ;}
/* = Clearfix = */
. Clearfix: After {
Content :".";
Display: block;
Height: 0;
Clear: both;
Visibility: hidden;
}
. Clearfix {display: inline-block ;}
* Html. Clearfix {Height: 1% ;}
. Clearfix {display: block ;}

 

Related Article

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.