<!DOCTYPE html>
<html lang="ru">
<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="header">
<div class="container">
<div class="header-header">Header
</div>
</div>
<div class="header-menu">Menu
</div>
<div class="container">
<div class="promo clearfix">
<div class="promo-promo1">Promo 1</div>
<div class="promo-promo2">Promo 2</div>
</div>
</div>
</div>
<div class="main">
<div class="container clearfix">
<div class="main-left">Left</div>
<div class="main-main">Main</div>
<div class="main-right">Right</div>
</div>
</div>
<div class="footer">Footer</div>
</body>
</html>
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: “Arial”, sans-serif;
font-size: 10px;
color: white;
}
.clearfix::after {
display: table;
content: “”;
clear: both;
}
.container {
width: 350px;
margin-left: auto;
margin-right: auto;
}
.header {
padding: 10px;
background: #34495e;
margin-bottom: 10px;
}
.header-header {
height: 30px;
background: #c0392b;
margin-bottom: 10px;
padding-top: 5px;
padding-left: 5px;
}
.header-menu {
background: #3498DB;
height: 25px;
margin-bottom: 10px;
padding:5px 45px;
}
.promo-promo1 {
float: left;
background:#c0392b;
height: 50px;
width: 160px;
margin-right: 10px;
padding: 5px 5px;
}
.promo-promo2 {
float: right;
height: 50px;
width: 160px;
background:#c0392b;
padding: 5px 5px;
}
.main {
margin-bottom: 10px;
}
.main-left {
width: 60px;
margin-right: 10px;
height: 100px;
float: left;
background: #3498DB;
padding: 5px 5px;
}
.main-main {
width: 180px;
margin-right: 10px;
height: 100px;
float: left;
background: #3498DB;
padding: 5px 5px;
}
.main-right {
width: 60px;
height: 100px;
float: right;
background: #3498DB;
padding: 5px 5px;
}
.footer {
background: #34495e;
height: 30px;
padding: 5px 55px;
}Текст "как есть" (без применения форматирования)