Comparison of css width and height in different browsers

Source: Internet
Author: User
Tags comparison

<Style type = "text/css tutorial">
# Container {
/* Left reference line */
Border-left: 1px solid # b23aee;
             }
/* Define the public attributes of each layer */
# Div1, # div2, # div3, # div4 {
Width: 200px;
Height: 50px;
Background: # ffe1ff;
Margin-bottom: 5px;
             }
/* Only width */
# Div1 {
             }
/* Add border */
# Div2 {
Border-left: 10px solid red;
             }
/* Add border and padding */
# Div3 {
Border-left: 10px solid red;
Padding-left: 50px;
             }
/* Add border, padding, and margin */
# Div4 {
Border-left: 10px solid red;
Padding-left: 50px;
Margin-left: 50px;
             }
</Style>

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.