CSS Reset (reset) Finishing

Source: Internet
Author: User
Tags reset

What is the CSS reset? Some of the peers are called "CSS reset", some may be called "Default CSS" ...

Believe that after reading the full text you will have a new understanding of CSS Reset

Ps:

Program code

* {
padding: 0;
margin: 0;
}

This is the most commonly used CSS Reset, but there will be a lot of problems.

The original part said a lot about CSS, as well as the different browser CSS rules, and the development of "CSS Reset" is also to be compatible and unified, the correct and effective use of "CSS reset" can be in a way to save time and money.

Thank you very much. Perishable and induction

The following is a few types of CSS reset simple introduction, the author's limited ability, can only understand the meaning, but also please you reader forgive me.

Minimalistic Reset [Version 1]

Believe that this is something you often see, and that's what we often use.

Program code

* {
padding: 0;
margin: 0;
}
Minimalistic Reset [ Version 2 ]

Border:0 's design is a little dodgy.

Program code

* {
padding: 0;
margin: 0;
border: 0;
}
Minimalistic Reset [ Version 3 ]

Of course, this is not recommended, it will conflict with some of the default styles

Program code

* {
outline: 0;
padding: 0;
margin: 0;
border: 0;
}
Condensed Universal 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.