JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<nav id="navbar" class="navbar navbar-inverse navbar-fixed-top">
<!-- Navbar content -->
<ul class="nav navbar-nav">
<li class="nav-item navitem"><a class="nav-link navhref" href="#home">Home</a></li>
<li class="navitem"><a class="navhref" href="#about">About</a></li>
<li class="navitem"><a class="navhref" href="#projects">Projects</a></li>
<li class="navitem"><a class="navhref" href="#contact">Contact</a></li>
</ul>
<h2>Harish</h2>
</nav>
<div id="about" class="sections container-fluid">
<h1 class="section-heading">About</h1>
<img src="http://veithen.github.io/images/icon-stackoverflow.svg" alt="Harish's Picture" height="200">
<p class="paragraph">Text about me.</p>
</div>
<div id="projects" class="sections container-fluid">
<h1 class="section-heading">Projects</h1>
<p class="paragraph">Html is fun. Javascript even moreso. No go out and learn you some libraries, experiment and figure out how to get it working on your own!</p>
</div>
<div id="contact" class="sections container-fluid">
<h1 class="section-heading">Contact</h1>
<p class="paragraph">Looks like someone may be farming out some homework.</p>
</div>
CSS
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css');
div.sections {
padding-top:50px;
padding-bottom:100px;
}
div.sections p {
padding-left:40px;
padding-right:40px;
}
/*Navbar*/
.navbar {
background-color: #009Fff;
color: #fff;
}
.navbar-lg {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
padding: 0;
}
.navbar-lg ul {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
margin: 0;
margin-right: auto;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
width: auto;
}
.navbar-lg ul li {
margin: 0;
}
.navbar-lg h2 {
padding: 0;
vertical-align: center;
font-family: 'Helvetica Neue', 'Raleway', 'arial', sans-serif;
font-size: 1.5rem;
vertical-align: center;
margin: 1.5rem;
font-weight: 400;
}
.navul {
width: 100%;
display: block;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
list-style-type: none;
padding-left: 0;
}
.navitem {
display: block;
margin: auto;
padding: 0.75rem;
text-align: center;
color: #fff;
font-family: 'Raleway', 'Helvetica Neue', 'arial', sans-serif;
font-size: 1.25rem;
font-weight: 300;
}
.navhref {
color: #fff;
}
.navhref {
text-decoration: none !important;
}
.navhref:visited {
color: #fff;
}
.navitem:hover,
.navhref:hover {
color: #007Bc6;
}
.navlinks {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
color: #009Fff;
}