CSS Basics Box Box

Source: Internet
Author: User

The box is like a courier parcel for a courier brother. Cut the parcel over the x-axis, as shown in the following:

The contents of the box is your online purchase of goods, the box is filled with some foam or newspapers to protect the safety of transport items, the border is wrapped box, the box is the outer margin is express small brother to place Courier, Courier and Courier distance. Corresponds to the CSS as shown in.

Content can determine its size simply by determining width and height. However, the span element does not apply.

<!DOCTYPE HTML><HTML><Head>    <MetaCharSet= "UTF-8">    <title></title>     <styletype= "Text/css">Html,body{Background-color:Silver;Height:100%;         }. Box1{width:50%;Height:50%;Background-color:indianred;         }span{width:500px;Height:20px;Background-color:indianred;         }     </style></Head><Body>    <Divclass= "Box1">           <P>Hello box</P>    </Div>    <span>Hello span</span></Body></HTML>

Running results such as:

padding:[<length>|<percentage>]{1,4} Four elements at a time are clockwise, right, bottom, and left.

The value abbreviation for the padiing element:

padding 20px; = padding 20px 20px 20px 20px;

padding 20px 10px; = padding 20px 10px 20px 10px;

padding 20px 10px 30px;= padding 20px 10px 30px 10px;

CSS Basics Box Box

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.