JSFiddle - React, Tailwind, and code Playground
by Al Dunne
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css">
<div class="wrapper">
<div class="static">
<div class="header">
Header
</div>
<div class="location">
Location
</div>
<div class="menu">
Menu
</div>
</div>
<div class="content">
Content
</div>
</div>
CSS
body {
padding: 0;
}
.wrapper {
margin:0 auto;
width: 1000px;
}
.static {
width:1000px;
z-index:2;
height:120px;
position: fixed;
}
.header {
background-color:Silver;
height:100px;
}
.location {
background-color:yellow;
height:20px;
}
.content {
background-color:Orange;
width:85%;
height:1500px;
margin-left:15%;
// float: right;
position:relative;
top: 120px;
}
.menu {
background-color:Green;
position: relative;
float:left;
width:15%;
}