Reset CSS Reset Style

Source: Internet
Author: User

1. Reset your own accumulated styles:

form{margin:0;}
input{margin:0;padding:0;}
select{margin:0;}
textarea{margin:0; padding:0;resize:none; overflow:auto; outline:none;}

th,td{padding:0;} /* There is no default style for the table, only the cell has padding*/table{border-collapse:collapse;} /* Merge Border spacing */

Default element margin value in different browsers:

The margin value of the body Firefox 20.0-----------------------body margin: margin:8px 8px 8px 8px; The margin for Internet Explorer 6.0-----------body is: margin:15px 10px 15px 10px; The margin for Internet Explorer 7.0-----------body is: margin:16px 11px 16px 11px; The margin for Internet Explorer 8.0-10.0----body is: margin:16px 8px 16px 8px; Opera 12.11---------------------body margin: margin:16px 8px 16px 8px; Safari 5.1-------------------------body margin: margin:16px 8px 16px 8px; Google Chrome 27.0---------body margin: margin:16px 8px 16px 8px; H1 margin value Firefox 20.0-----------------------H1 margin: margin:21px 0 22px 0; The margin for Internet Explorer 6.0-----------H1 is: margin:19px 0 19px 0; The margin for Internet Explorer 7.0-----------H1 is: margin:19px 0 19px 0; The margin for Internet Explorer 8.0-10.0----H1 is: margin:20px 0 20px 0; Opera 12.11---------------------H1 margin: margin:21px 0 21px 0; The margin for Safari 5.1-------------------------H1 is: margin:21px 0 21px 0; The margin for Google Chrome 27.0---------H1: margin:21px 0 22px 0; H2 margin value Firefox 20.0-----------------------H2 margin: margin:20px 0 20px 0; The margin for Internet Explorer 6.0-----------H2 is: margin:19px 0 19px 0; The margin for Internet Explorer 7.0-----------H2 is: margin:19px 0 19px 0; The margin for Internet Explorer 8.0-10.0----H2 is: margin:20px 0 20px 0; Opera 12.11---------------------H2 margin: margin:19px 0 19px 0; The margin for Safari 5.1-------------------------H2 is: margin:19px 0 19px 0; The margin for Google Chrome 27.0---------H2 is: margin:20px 0 20px 0; H3 margin value Firefox 20.0-----------------------h3 margin: margin:19px 0 18px 0; The margin for Internet Explorer 6.0-----------h3 is: margin:19px 0 19px 0; The margin for Internet Explorer 7.0-----------H3 is: margin:19px 0 19px 0; The margin for Internet Explorer 8.0-10.0----h3 is: margin:19px 0 18px 0; Opera 12.11---------------------h3 margin: margin:18px 0 18px 0; The margin for Safari 5.1-------------------------h3 is: margin:18px 0 18px; The margin for Google Chrome 27.0---------H3 is: margin:19px 0 18px 0; H4 margin value Firefox 20.0-----------------------h4 margin: margin:22px 0 21px 0; The margin for Internet Explorer 6.0-----------h4 is: margin:19px 0 19px 0; The margin for Internet Explorer 7.0-----------h4 is: margin:19px 0 19px 0; The margin for Internet Explorer 8.0-10.0----h4 is: margin:22px 0 21px 0; Opera 12.11---------------------h4 margin: margin:16px 0 16px 0; The margin for Safari 5.1-------------------------h4 is: margin:21px 0 21px 0; The margin for Google Chrome 27.0---------h4 is: margin:22px 0 21px 0; H5 margin value Firefox 20.0-----------------------h5 margin: margin:22px 0 22px 0; The margin for Internet Explorer 6.0-----------h5 is: margin:19px 0 19px 0; The margin for Internet Explorer 7.0-----------h5 is: margin:19px 0 19px 0; The margin for Internet Explorer 8.0-10.0----h5 is: margin:22px 0 22px 0; Opera 12.11---------------------h5 margin: margin:22px 0 22px 0; The margin for Safari 5.1-------------------------h5 is: margin:22px 0 22px 0; The margin for Google Chrome 27.0---------h5 is: margin:22px 0 22px 0; Margin value of H6 Firefox 20.0-----------------------h6 margin: margin:25px 0 25px 0; The margin for Internet Explorer 6.0-----------h6 is: margin:19px 0 19px 0; The margin for Internet Explorer 7.0-----------h6 is: margin:19px 0 19px 0; The margin for Internet Explorer 8.0-10.0----h6 is: margin:25px 0 25px 0; Opera 12.11---------------------h6 margin: margin:24px 0 24px 0; The margin for Safari 5.1-------------------------h6 is: margin:24px 0 24px 0; The margin for Google Chrome 27.0---------h6 is: margin:28px 0 28px 0; Margin value for DL Firefox 20.0-----------------------dl margin: margin:16px 0 16px 0; The margin for Internet Explorer 6.0-----------DL is: margin:19px 0 19px 0; The margin for Internet Explorer 7.0-----------DL is: margin:19px 0 19px 0; The margin for Internet Explorer 8.0-10.0----DL is: margin:16px 0 16px 0; Opera 12.11---------------------dl margin: margin:16px 0 16px 0; The margin for Safari 5.1-------------------------DL is: margin:16px 0 16px 0; The margin for Google Chrome 27.0---------DL is: margin:16px 0 16px 0; Margin value of DD Firefox 20.0----------------The margin for-------DD is: margin:0 0 0 40px; The margin for Internet Explorer 6.0-----------DD is: margin:0 0 0 40px; The margin for Internet Explorer 7.0-----------DD is: margin:0 0 0 40px; The margin for Internet Explorer 8.0-10.0----dd is: margin:0 0 0 40px; The margin for Opera 12.11---------------------DD is: margin:0 0 0 40px; The margin for Safari 5.1-------------------------DD is: margin:0 0 0 40px; The margin for Google Chrome 27.0---------DD is: margin:0 0 0 40px; UL margin value Firefox 20.0-----------------------ul margin: margin:16px 0 16px 0; Internet Explorer 6.0-----------ul margin: margin:19px 0 19px 40px; Internet Explorer 7.0-----------ul margin: margin:19px 0 19px 40px; Internet Explorer 8.0-10.0----ul margin: margin:16px 0 16px 0; Opera 12.11---------------------ul margin: margin:16px 0 16px 0; Safari 5.1-------------------------ul margin: margin:16px 0 16px 0; Google Chrome 27.0---------ul margin: margin:16px 0 16px 0; The margin value of ol Firefox 20.0-----------------------ol margin: margin:16px 0 16px 0; The margin for Internet Explorer 6.0-----------ol is: margin:19px 0 19px 40px; The margin for Internet Explorer 7.0-----------ol is: margin:19px 0 19px 40px; The margin for Internet Explorer 8.0-10.0----ol is: margin:16px 0 16px 0; Opera 12.11---------------------ol margin: margin:16px 0 16px 0; The margin for Safari 5.1-------------------------ol is: margin:16px 0 16px 0; The margin for Google Chrome 27.0---------ol is: margin:16px 0 16px 0; UL padding value Firefox 20.0-----------------------ul padding for: padding:0 0 0 40px; Internet Explorer 6.0-----------ul's padding: padding:0 0 0 0; Internet Explorer 7.0-----------ul's padding: padding:0 0 0 0; Internet Explorer 8.0-10.0----ul's padding: padding:0 0 0 40px; Opera 12.11---------------------ul's padding: padding:0 0 0 40px; Safari 5.1-------------------------ul's padding: padding:0 0 0 40px; Google Chrome 27.0---------ul's padding: padding:0 0 0 40px; OL padding value of Firefox 20.0-----------------------ol padding: padding:0 0 0 40px; Internet Explorer 6.0-The padding of----------ol is: padding:0 0 0 0; Internet Explorer 7.0-----------ol padding: padding:0 0 0 0; Internet Explorer 8.0-10.0----ol padding: padding:0 0 0 40px; Opera 12.11---------------------ol padding: padding:0 0 0 40px; Safari 5.1-------------------------ol padding: padding:0 0 0 40px; Google Chrome 27.0---------ol padding: padding:0 0 0 40px; P's margin value Firefox 20.0-----------------------P's margin: margin:16px 0 16px 0; The margin for Internet Explorer 6.0-----------P is: margin:19px 0 19px 0; The margin for Internet Explorer 7.0-----------P is: margin:19px 0 19px 0; The margin for Internet Explorer 8.0-10.0----p is: margin:16px 0 16px 0; Opera 12.11---------------------P's margin: margin:16px 0 16px 0; The margin for Safari 5.1-------------------------p is: margin:16px 0 16px 0; The margin for Google Chrome 27.0---------P is: margin:16px 0 16px 0; Thead,tbody,tfoot margin value Firefox 20.0-----------------------thead,tbody,tfoot margin: margin:2px 2px 2px 2px; Internet Explorer 6.0----------- The margin of Thead,tbody,tfoot is: margin:2px 2px 2px 2px; The margin for Internet Explorer 7.0-----------Thead,tbody,tfoot is: margin:2px 2px 2px 2px; The margin for Internet Explorer 8.0-10.0----thead,tbody,tfoot is: margin:2px 2px 2px 2px; Opera 12.11---------------------thead,tbody,tfoot margin: margin:2px 2px 2px 2px; The margin for Safari 5.1-------------------------thead,tbody,tfoot is: margin:2px 2px 2px 2px; Google Chrome 27.0---------thead,tbody,tfoot margin: margin:2px 2px 2px 2px; Margin value for form Firefox 20.0-----------------------the margin of the form: margin:0 0 0 0; The margin for Internet Explorer 6.0-----------form is: margin:19px 0 19px 0; The margin for Internet Explorer 7.0-----------form is: margin:19px 0 19px 0; The margin for Internet Explorer 8.0-10.0----form is: margin:0 0 0 0; Opera 12.11---------------------The margin for form: margin:0 0 0 0; The margin for Safari 5.1-------------------------form is: margin:0 0 0 0; The margin for Google Chrome 27.0---------form is: margin:0  0 0 0;
View Code

Reset CSS Reset Style

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.