как я могу сделать div
left3 нижней и left4 снизу Align на дне (как left2 снизу), а также растягивать left2 сверхуdiv
над всей шириной?набора выравнивание DIV вниз
Я пробовал vertical-align: bottom;
, но это не поможет.
веселит, Пит
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test</title>
<style type="text/css">
.wrapper{
margin: 0px auto;
width: 940px;
background-color: #28cf21;
}
.header{
\t width: 100%;
\t background-color: #12bf81;
\t }
.left1{
float: left;
margin-right: 20px;
width: 220px;
height: 500px;
background-color: #fc0234;
}
.left2{
float: left;
margin-right: 20px;
width: 220px;
height: 500px;
background-color: #f78325;
}
.left2oben{
float: left;
margin-right: 20px;
width: 220px;
height: 250px;
background-color: #f78325;
}
.left2unten{
float: left;
margin-right: 20px;
width: 220px;
height: 250px;
background-color: #f11325;
}
.left3{
float: left;
margin-right: 20px;
width: 220px;
height: 250px;
background-color: #f78325;
}
.left4{
float: left;
width: 220px;
height: 250px;
background-color: #f78325;
}
body {
padding: 0px;
margin: 0px;
font-size: 90%;
background-color: #00ccff;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="header">
header
</div>
<div class="left1">
left1
</div>
<div class="left2">
<div class="left2oben">
\t left2 top
\t \t \t </div>
<div class="left2unten">
\t left2 bottom
\t \t \t </div>
</div>
<div class="left3">
left3 bottom
</div>
<div class="left4">
left4 bottom
</div>
</div>
</body>
</html>
Я пробовал, но затем '' .left3' и .left4 'установлены в нижней части всей страницы, а не внутри' .wrapper' 'div' –
@PetePark извините, я неправильно понял вопрос –
@PetePark обновил ответ –