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