JSFiddle - React, Tailwind, and code Playground

by Anton Omechuk

HTML

<!DOCTYPE html>
<html lang="ru">
    <head>
        <title>Испытание: строим сетку</title>
        <meta charset="utf-8">
    </head>
    <body>
        <div class="head">
            <div class="layout-positioner">
                <div class="header">Header</div>
                <div class="menu">Menu</div>
                <div class="promo1">Promo 1</div>
                <div class="promo2">Promo 2</div>
            </div>
        </div>
        <div class="content">
            <div class="layout-positioner">
                <div class="column column1">Left</div>
                <div class="column column2">Main</div>
                <div class="column column3">Right</div>
            </div>
        </div>
            <div class="layout-positioner">
                <div class="footer">Footer</div>
            </div>
    </body>
</html>

CSS

html,
body {
    margin: 0;
    padding: 0;
}

body {
    width: 450px;
    height: 335px;
    font-family: "Arial", sans-serif;
    font-size: 10px;
    color: white;
}

.layout-positioner::after {
    content: "";
    display: table;
    clear: both;
}

.head {
    background: #34495e;
    height: 160px;
    padding-top: 10px;
}

.header {
    background: #c0392b;
    padding: 5px;
    height: 25px;
    width: 340px;
    margin: auto;
}

.menu {
    background: #3498DB;
    padding-left: 55px;
    padding-top: 5px;
    height: 30px;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.promo1 {
    background: #c0392b;
    padding-left: 5px;
    padding-top: 5px;
    float: left;
    height: 55px;
    width: 165px;
    margin-left: 50px;
}

.promo2 {
    background: #c0392b;
    padding-left: 5px;
    padding-top: 5px;
    float: left;
    margin-left: 10px;
    height: 55px;
    width: 165px;
    
}

.content {
    background: white; 
}

.column {
    background: #3498DB;
    float: left;
    height: 105px;
    margin-top: 10px;
    padding-top: 5px;
    padding-left: 5px;
    
}

.column1 {
    width: 65px;
    margin-left: 50px;
}

.column2 {
    width: 185px;   
    margin-left: 10px;
}

.column3 {
    width: 65px; 
    margin-left: 10px;
}

.footer {
    background: #34495e;
    height: 40px;
    margin-top: 10px;
    padding-top: 5px;
    padding-left: 55px;
}