<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="container1 clearfix">
<div class="header">
Header
</div>
<div class="menu">
Menu
</div>
<div class="columns1 clearfix">
<div class="column1-1">
Promo 1
</div>
<div class="column1-2">
Promo 2
</div>
</div>
</div>
<div class="container2">
<div class="column2-1">
Left
</div>
<div class="column2-3">
Right
</div>
<div class="column2-2">
Main
</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 {
background: #34495e;
width: 450px;
padding-top: 10px;
}
.header {
background: #c0392b;
padding: 5px;
width: 340px;
height: 25px;
margin: 0 auto 10px auto;
}
.menu {
background: #3498DB;
padding: 5px 5px 5px 55px;
height: 25px;
}
.columns1 {
width: 350px;
margin: 10px auto 10px auto;
}
.column1-1 {
background: #c0392b;
padding: 5px;
float: left;
height: 50px;
width: 160px;
}
.column1-2 {
background: #c0392b;
padding: 5px;
float: right;
height: 50px;
width: 160px;
}
.clearfix::after {
content: “”;
display: table;
clear: both;
}
.container2 {
width: 350px;
margin: 10px auto 10px auto;
}
.column2-1 {
background: #3498DB;
padding: 5px;
height: 100px;
width: 60px;
float: left;
}
.column2-2 {
background: #3498DB;
padding: 5px;
height: 100px;
width: 180px;
margin: 0 auto 0 auto;
}
.column2-3 {
background: #3498DB;
padding: 5px;
height: 100px;
width: 60px;
float: right;
}
.footer {
background: #34495e;
height: 25px;
padding: 5px 5px 5px 55px;
}