The following is the program code
In this section we discuss how to use CSS to control the surrounding spaces and the setting of the border
Elements surrounding the space margin properties margin can be used to determine the surrounding space, if we want the entire page in
5em to the left but no space for the title
Body {margin:5em}
h3 {margin: -5em}
The H3 negative -5em offsets the space in body 5em.
In addition, we can use Margin-left, Margin-right, Margin-top, respectively,
and Margin-bottom to set left, right, top, and bottom spaces.
Space around the inside of an element padding
At first glance this nature looks like margin. In fact, between them there are
A big difference. The margin space is empty relative to the other elements.
The padding is a blank space around the element's perimeter and inside the content. In
For the following example, we use a background-colored table to make you notice this
A property
Table.pad {padding:5mm; Background-color: #ccefcc}
[Code]
Petersen is arrested in a modest apartment building in studio CITY, Calif, which he had been sharing and three other people. The article link http://www.cxybl.com/html/wyzz/CSS/20120601/27371.html
|