<div class="container2">
<div class="left">Left</div>
<div class="main">Main</div>
<div class="right">Right</div>
<div class="clearfix"></div>
</div>
<div class="footer">Footer</div>
</body>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: “Arial”, sans-serif;
font-size: 10px;
color: white;
}
.container1 {
width: 450px;
background:#34495e;
padding: 10px 0;
}
.container2 {
width: 450px;
background:white;
padding: 10px 0;
}
.header {
width: 350px;
height: 35px;
margin: auto;
margin-top: 10px;
margin-bottom: 10px;
background: #c0392b;
padding-left: 5px;
padding-top: 5px;
}
.menu {
width: 395px;
min-height: 35px;
margin-left: 0px;
margin-right: 0px
margin-top: 10px;
margin-bottom: 10px;
background: #3498DB;
padding-left: 55px;
padding-top: 5px;
}
.promo {
background: #c0392b;
display: table;
}
.promo1 {
float: left;
width: 160px;
min-height: 50px;
margin-left: 50px;
padding: 5px;
}
.promo2 {
float: right;
width: 160px;
min-height: 50px;
padding: 5px;
margin-right: 50px;
}
.clearfix::after {
content: “”;
display:table;
clear:both;
}
.left {
float: left;
background-color:#3498DB;
width: 70px;
min-height: 100px;
margin-left: 50px;
padding: 5px;
}
.main {
float: left;
background-color:#3498DB;
width: 170px;
min-height: 50px;
margin-left: 10px;
padding: 5px;
}
.right {
float: right;
background-color:#3498DB;
width: 60px;
min-height: 100px;
margin-right: 50px;
padding: 5px;
}
.footer {
width: 450px;
background:#34495e;
padding: 10px 0;
}
/*
Используемые цвета:
#34495e – мокрый асфальт
#c0392b – красный
#3498DB – синий
*/