Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of default margin and padding values of Common elements

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you the "sample analysis of default margin and padding values of commonly used elements". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn the "sample analysis of default margin and padding values of commonly used elements".

The code is as follows:

/ / the margin value of body

Firefox 20.0-margin of body is: margin:8px 8px 8px 8px

The margin of Internet Explorer 7.0-body is: margin:16px 11px 16px 11px

Internet Explorer 8.0-10.0-the margin of body is: margin:16px 8px 16px 8px

The margin of Opera 12.11-body is: margin:16px 8px 16px 8px

The margin of Safari 5.1-body is: margin:16px 8px 16px 8px

The margin of Google Chrome 27.0-body is: margin:16px 8px 16px 8px

/ / Edge value of H2

Firefox 20.0-margin of H2 is: margin:21px 0 22px 0

The margin of Internet Explorer 6.0-H2 is: margin:19px 0 19px 0

The margin of Internet Explorer 7.0-H2 is: margin:19px 0 19px 0

Internet Explorer 8.0-10.0-margin of H2 is: margin:20px 0 20px 0

The margin of Opera 12.11-H2 is: margin:21px 0 21px 0

The margin of Safari 5.1-H2 is: margin:21px 0 21px 0

The margin of Google Chrome 27.0-H2 is: margin:21px 0 22px 0

/ / margin value of h3

Firefox 20.0-margin of h3 is: margin:20px 0 20px 0

The margin of Internet Explorer 6.0-h3 is: margin:19px 0 19px 0

The margin of Internet Explorer 7.0-h3 is: margin:19px 0 19px 0

Internet Explorer 8.0-10.0-margin of h3 is: margin:20px 0 20px 0

The margin of Opera 12.11-h3 is: margin:19px 0 19px 0

The margin of Safari 5.1-h3 is: margin:19px 0 19px 0

The margin of Google Chrome 27.0-h3 is: margin:20px 0 20px 0

Firefox 20.0-margin of h4 is: margin:19px 0 18px 0

The margin of Internet Explorer 6.0-h4 is: margin:19px 0 19px 0

The margin of Internet Explorer 7.0-h4 is: margin:19px 0 19px 0

Internet Explorer 8.0-10.0-margin of h4 is: margin:19px 0 18px 0

The margin of Opera 12.11-h4 is: margin:18px 0 18px 0

The margin of Safari 5.1-h4 is: margin:18px 0 18px

The margin of Google Chrome 27.0-h4 is: margin:19px 0 18px 0

/ / margin value of h5

Firefox 20.0-the margin of h5 is: margin:22px 0 21px 0

The margin of Internet Explorer 6.0-h5 is: margin:19px 0 19px 0

The margin of Internet Explorer 7.0-h5 is: margin:19px 0 19px 0

Internet Explorer 8.0-10.0-margin of h5 is: margin:22px 0 21px 0

The margin of Opera 12.11-h5 is: margin:16px 0 16px 0

The margin of Safari 5.1-h5 is: margin:21px 0 21px 0

The margin of Google Chrome 27.0-h5 is: margin:22px 0 21px 0

/ / margin value of h6

Firefox 20.0-the margin of h6 is: margin:22px 0 22px 0

The margin of Internet Explorer 6.0h6 is: margin:19px 0 19px 0

The margin of Internet Explorer 7.0h6 is: margin:19px 0 19px 0

Internet Explorer 8.0-10.0-margin of h6 is: margin:22px 0 22px 0

The margin of Opera 12.11-h6 is: margin:22px 0 22px 0

The margin of Safari 5.1-h6 is: margin:22px 0 22px 0

The margin of Google Chrome 27.0-h6 is: margin:22px 0 22px 0

Firefox 20.0-the margin of h7 is: margin:25px 0 25px 0

The margin of Internet Explorer 6.0-H7 is: margin:19px 0 19px 0

The margin of Internet Explorer 7.0h7 is: margin:19px 0 19px 0

Internet Explorer 8.0-10.0-margin of H7 is: margin:25px 0 25px 0

The margin of Opera 12.11-h7 is: margin:24px 0 24px 0

The margin of Safari 5.1-H7 is: margin:24px 0 24px 0

The margin of Google Chrome 27.0-H7 is: margin:28px 0 28px 0

Firefox 20.0-the margin of dl is: margin:16px 0 16px 0

The margin of Internet Explorer 6.0-dl is: margin:19px 0 19px 0

The margin of Internet Explorer 7.0-dl is: margin:19px 0 19px 0

Internet Explorer 8.0-10.0-the margin of dl is: margin:16px 0 16px 0

The margin of Opera 12.11-dl is: margin:16px 0 16px 0

The margin of Safari 5.1-dl is: margin:16px 0 16px 0

The margin of Google Chrome 27.0-dl is: margin:16px 0 16px 0

Firefox 20.0-margin of dd is: margin:0 0 0 40px

The margin of Internet Explorer 6.0-dd is: margin:0 0 0 40px

The margin of Internet Explorer 7.0-dd is: margin:0 0 0 40px

Internet Explorer 8.0-10.0-margin of dd is: margin:0 0 40px

The margin of Opera 12.11-dd is: margin:0 0 40px

The margin of Safari 5.1-dd is: margin:0 0 0 40px

The margin of Google Chrome 27.0-dd is: margin:0 0 0 40px

/ / the margin value of ul

Firefox 20.0-the margin of ul is: margin:16px 0 16px 0

The margin of Internet Explorer 6.0-ul is: margin:19px 0 19px 40px

The margin of Internet Explorer 7.0-ul is: margin:19px 0 19px 40px

Internet Explorer 8.0-10.0-the margin of ul is: margin:16px 0 16px 0

The margin of Opera 12.11-ul is: margin:16px 0 16px 0

The margin of Safari 5.1-ul is: margin:16px 0 16px 0

The margin of Google Chrome 27.0-ul is: margin:16px 0 16px 0

/ / the margin value of ol

Firefox 20.0-the margin of ol is: margin:16px 0 16px 0

The margin of Internet Explorer 6.0-ol is: margin:19px 0 19px 40px

The margin of Internet Explorer 7.0-ol is: margin:19px 0 19px 40px

Internet Explorer 8.0-10.0-the margin of ol is: margin:16px 0 16px 0

The margin of Opera 12.11-ol is: margin:16px 0 16px 0

The margin of Safari 5.1-ol is: margin:16px 0 16px 0

The margin of Google Chrome 27.0-ol is: margin:16px 0 16px 0

/ / the padding value of ul

Firefox 20.0-padding of ul is: padding:0 0 0 40px

The padding of Internet Explorer 6.0-ul is: padding:0 0 0 0

The padding of Internet Explorer 7.0-ul is: padding:0 0 000

Internet Explorer 8.0-10.0-padding of ul is: padding:0 0 40px

The padding of Opera 12.11-ul is: padding:0 0 40px

The padding of Safari 5.1-ul is: padding:0 0 0 40px

The padding of Google Chrome 27.0-ul is: padding:0 0 0 40px

/ / the padding value of ol

Firefox 20.0-padding of ol is: padding:0 0 0 40px

The padding of Internet Explorer 6.0-ol is: padding:0 0 0 0

The padding of Internet Explorer 7.0-ol is: padding:0 0 000

Internet Explorer 8.0-10.0-padding of ol is: padding:0 0 40px

The padding of Opera 12.11-ol is: padding:0 0 40px

The padding of Safari 5.1-ol is: padding:0 0 0 40px

The padding of Google Chrome 27.0-ol is: padding:0 0 0 40px

The margin value of / / p

Margin of firefox 20.0-p is: margin:16px 0 16px 0

The margin of Internet Explorer 6.0p is: margin:19px 0 19px 0

The margin of Internet Explorer 7.0p is: margin:19px 0 19px 0

The margin of Internet Explorer 8.0-10.0-p is: margin:16px 0 16px 0

The margin of Opera 12.11-p is: margin:16px 0 16px 0

The margin of Safari 5.1-p is: margin:16px 0 16px 0

The margin of Google Chrome 27.0-p is: margin:16px 0 16px 0

/ / the margin value of thead,tbody,tfoot

Firefox 20.0-margin of thead,tbody,tfoot is: margin:2px 2px 2px 2px

The margin of Internet Explorer 6.0-thead,tbody,tfoot is: margin:2px 2px 2px 2px

The margin of Internet Explorer 7.0-thead,tbody,tfoot is: margin:2px 2px 2px 2px

Internet Explorer 8.0-10.0-the margin of thead,tbody,tfoot is: margin:2px 2px 2px 2px

The margin of Opera 12.11-thead,tbody,tfoot is: margin:2px 2px 2px 2px

The margin of Safari 5.1-thead,tbody,tfoot is: margin:2px 2px 2px 2px

The margin of Google Chrome 27.0-thead,tbody,tfoot is: margin:2px 2px 2px 2px

/ / the margin value of form

Firefox 20.0-margin of form is: margin:0 0 000

The margin of Internet Explorer 6.0-form is: margin:19px 0 19px 0

The margin of Internet Explorer 7.0-form is: margin:19px 0 19px 0

Internet Explorer 8.0-10.0-the margin of form is: margin:0 000

The margin of Opera 12.11-form is: margin:0 0 000

The margin of Safari 5.1-form is: margin:0 0 000

The margin of Google Chrome 27.0-form is: margin:0 0 000

The above is all the content of the article "sample Analysis of default margin and padding values of Common elements". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report