JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="ru">
<head>
<title>Испытание: строим сетку</title>
<meta charset="utf-8">
</head>
<body>
<div class="container">
<header>
<div class="position">
<div class="one">
<div class="title"><span>Header</span></div>
</div>
</div>
<div class="wrapper_menu"><span class="menu">Menu</span></div>
<div class="wrapper_promo">
<div class="Promo1"><span class="pr">Promo 1</span></div>
<div class="Promo2"><span class="pr">Promo 2</span></div>
</div>
</header>
</div>
Left
Main
Right
Footer
</body>
</html>
CSS
html,
body {
margin: 0;
padding: 0;
}
body {
width: 450px;
height: 335px;
font-family: "Arial", sans-serif;
font-size: 10px;
color: white;
}
.container {
margin: 0px auto;
}
header {
background-color: #34495e;
height: 170px;
}
.one {
background-color: #c0392b;
width: 353px;
height: 33px;
}
.title {
padding-left: 10px;
padding-top: 5px;
}
.position {
padding-top: 15px;
}
.wrapper_menu {
margin-top: 10px;
background-color: #3498DB;
width: 450px;
height: 35px;
}
.menu {
display: block;
padding-left: 60px;
padding-top: 5px;
}
.wrapper_promo {
width: 353px;
padding-top: 10px;
}
.Promo1 {
float: left;
width: 170px;
background-color: #c0392b;
height: 60px;
}
.Promo2 {
float: right;
width: 170px;
height: 60px;
background-color: #c0392b;
margin-right: 0px;
}
.pr {
display: block;
margin: 5px;
}
/*
Используемые цвета:
#34495e – мокрый асфальт
#c0392b – красный
#3498DB – синий
*/