JSFiddle - React, Tailwind, and code Playground
by arnausd
HTML
<body>
<nav>Navbar</nav>
<main class="container">
<section class="left">Section</section>
<section class="center">Section</section>
<section class="right">Section</section>
</main>
<footer>Footer</footer>
</body>
CSS
.container {
border: 2px solid #656363;
padding: 5px;
margin: 5px 0;
display: grid;
grid-template-rows: 100px 100px;
}
.left {
background-color: #dc4d4d;
grid-column-start: 1;
grid-column-end: 3;
}
.center {
background-color: #FD9A5C;
}
.right {
background-color: #e8a2af;
}
nav {
width: 100%;
height: 50px;
line-height: 50px;
background-color: #5ca966;
}
footer {
width: 100%;
height: 50px;
line-height: 50px;
background-color: #2795ee;
}
section {
height: 100px;
line-height: 100px;
}
* {
color: white;
text-align: center;
font-family: sans-serif;
font-size: 22px;
font-weight: bold;
letter-spacing: 2px;
border-radius: 4px;
}