JSFiddle - React, Tailwind, and code Playground

by Pallum

HTML

<header>
	<nav>
		<div class="mob-nav">
			<div class="nav-toggle"><i class="nav-icon"></i></div>
		</div>
		<ul class="left-nav">	
			<li class="home"><a href="#">Pixelation</a></li>	
		</ul>
		<ul class="right-nav">	
			<li><a href="#">Work</a></li>
			<li><a href="#">About</a></li>
		</ul>
	</nav>
 </header>

CSS

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box; /* width and height value includes content, padding and border not the margin */
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0,0,0,0); /* remove highlight on touch devices */
  -webkit-tap-highlight-color: transparent;
}

html {
  position: relative;
  min-height: 100%; /* sticky footer  */
  overflow-y: scroll;
  height: 2500px;
}

body {
  font-family:  "Helvetica Neue", helvetica, arial, sans-serif;
  font-weight: normal;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #000;
}

body, input, textarea, select, button {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  z-index: 9999;
  background-color: #eee;
}

.mob-nav {
  display: none; /* hide mobile nav */
}

nav ul.left-nav {
  float: left;
}

nav ul.right-nav {
  float: right;
}

nav {
  position: relative;
  padding: 0 5px;
}

nav ul {
  list-style: none;
  font-size: 0; /* remove default spacing */
}

nav li {
  display: inline-block;
}

nav a {
  display: block;
  font-size: 18px;
  font-weight: normal;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  background-color: transparent;
  padding: 0 10px;
  line-height: 44px;
}

nav a:link, 
nav a:visited {
  color: #111;
  text-decoration: none;
}

nav a:hover,
nav a:active {
  color: #999;
}