CSSCodeAs follows:
Body {
Text-align: center;
Margin: 0px;
Padding: 0px;
}
# Father
{
Position: relative;
Width: 750px;
Text-align: center;
}
# Banner {Height: 96px; Background-color: #999; text-align: Left; padding: 0px; margin: 0px ;}
# B-left {width: 159px; margin: 0px; padding: 0px; float: Left ;}
# B-center {margin: 0px; float: Left ;}
# B-right {
Text-align: left;
Marign: 0px;
Padding: 0px;
Width: pixel PX;
Background-color: #00 FFFF;
Height: 96px;
Float: right;
}
The HTML code is as follows:
<Div id = banner>
<Div id = B-left> </div>
<Div id = B-center> </div>
<Div id = B-Right>
<Ul style = "list-style-type: none;">
<Br/>
<Li> set as homepage </LI>
<Li> Add to favorites </LI>
<Li> Contact Us </LI>
</Ul>
</Div>
</Div>
To sum up:
The layout of one row and three columns has the following ideas:
First, make an absolute layout and set the distance between each block and the surrounding area.
The second is to use the nested method to treat any two as one, and then set them together with the third! However, it seems that I have opened all three parts here, and it seems that there is no problem! Haha!