JSFiddle - React, Tailwind, and code Playground
by siva_hari
HTML
<div class='title-bar'>
<div id="title">Title</div>
<div id="navBar">
<ul>
<li><a id="link1" href="#">Link 1</a>
</li>
<li><a id="link2" href="#">Link 2</a>
</li>
<li><a id="link3" href="#">Link 3</a>
</li>
</ul>
</div>
</div>
<div id="content">
<h1> Sample content (1984)</h1>
<p>It</p>
<p>The</p>
<p>Inside</p>
<p>Outside,</p>
<p>Behind</p>
<p>Winston</p>
<p>The</p>
<p>WAR IS PEACE</p>
<p>FREEDOM IS SLAVERY</p>
<p>IGNORANCE IS STRENGTH</p>
</div>
<div id="footer">Footer</div>
CSS
body {
background: #e6e6e6;
}
.title-bar {
position: fixed;
width: 100%;
top: 0;
background-color: #ccc;
}
#title {
margin:0 0 0 0;
text-align: center;
font-size:40px;
font-family:"League-Gothic", Courier;
color: #707070;
font-weight:600;
}
#navbar ul {
margin: 0;
padding: 5px;
list-style-type: none;
text-align: left;
background-color: #005ab3;
}
#navbar ul li {
display: inline;
font-family: Arial;
}
#navbar ul li a {
text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #005ab3;
}
#navbar ul li a:hover {
color: #005ab3;
background-color: #fff;
}
#content {
margin-top: 122px;
background-color: #fff;
font-family: Arial;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
padding: 5px;
padding-left: 15px;
padding-right: 15px;
overflow: auto;
}
#footer {
position: fixed;
bottom: 0;
left:0;
width: 100%;
background: #005ab3;
line-height: 2;
text-align: center;
color: #fff;
font-size: 15px;
font-family: sans-serif;
}