JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE htlm>
<html lang='en'>
<head>
<meta charset="UTF-8">
<title>Top-down</title>
<link rel='stylesheet' href='style.css'>
</head>
<body>
<div class='wrapper'>
<div class='header'>
<div class='inner-header'>Header</div>
</div>
<div class='row'>
<div class='sidebar'>
<div class='inner-sidebar'>Sidebar</div>
</div>
<div class='content'>
<div class='inner-content'>Content</div>
</div>
</div>
<div class='footer'>
<div class='inner-footer'>Footer</div>
</div>
</div>
</body>
</html>
CSS
* {
box-sizing: border-box;
}
body {
color: white;
font-size: 30px;
}
.row:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.row { display: inline-block; }
/* start commented backslash hack \*/
* html .row { height: 1%; }
.row { display: block; }
/* close commented backslash hack */
.header {
margin-bottom: 10px;
}
.inner-header {
background: #BF8E5E;
height: 200px;
}
.content {
width: 69%;
float: left;
}
.inner-content {
background: #B8ACA0;
min-height: 500px;
}
.sidebar {
width: 30%;
float:right;
}
.inner-sidebar {
background: #B8ACA0;
min-height: 500px;
}
.footer {
margin-top: 10px;
}
.inner-footer {
background: #BF8E5E;
height: 200px;
}