Eric Meyer and Yui's CSS Reset

Source: Internet
Author: User
Tags reset

Article Introduction: Eric Meyer and Yui) CSS Reset

/* normalizes margin,padding * *
BODY,DIV,DL,DT,DD,UL,OL,LI,H1,H2,H3,H4,H5,H6,PRE,FORM,FIELDSET,INPUT,P,BLOCKQUOTE,TH,TD {margin:0;padding:0}

/* normalizes font-size for headers * *
H1,h2,h3,h4,h5,h6 {font-size:100%}

/* Removes List-style from lists * *
Ol,ul {List-style:none}

/* normalizes font-size and font-weight to normal * *
Address,caption,cite,code,dfn,em,strong,th,var {font-size:normal; Font-weight:normal}

/* Removes List-style from lists * *
Table {border-collapse:collapse; border-spacing:0}

/* Removes border from fieldset and IMG * *
fieldset,img {border:0}

/* left-aligns text in caption and th * *
caption,th {Text-align:left}

/* Removes quotation marks from Q * *
Q:before,q:after {content: '}

How do we actually write the code when the CSS reset it?
I personally recommend the use of (Eric Meyer and YUI) CSS Reset



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.