JSFiddle - React, Tailwind, and code Playground

by Fredy Sudhir

HTML

<div class="nav">
			<div class="nav-content">
				<div class="logo">Hello</div>
				<div class="nav-inner">
					<div class="nav-box"><strong style="color: black;">Need to monitor your links?</strong><a class="nav-link" id="register"> Register for free</a></div>
					<div class="nav-box"><a class="nav-link" id="login">Sign in</a></div>
				</div>
			</div>
		</div>

CSS

body {
	background-color: #f7f7f7;
	/*text-align: center;*/
	font-family: "Source Sans Pro",sans-serif;
}

.nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	overflow: hidden;
	height: 60px;

	border-bottom: 1px solid white;
	background-color: #ffffff;

	-webkit-box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, 0.22);
	-moz-box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, 0.22);
	box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, 0.22);
}

.nav > .nav-content {
	padding: 20px 10px;
	font-size: 13px;
}

.nav > .nav-content > .logo {
	float: left;
	margin-left: 80px;
}

.nav > .nav-content > .nav-inner {
	width: auto;
	float: right;
}

.nav > .nav-content > .nav-inner > .nav-box {
	padding: 6px;
	border: 1px solid rgba(0, 0, 0, 0.4);
	text-align: center;
	display: inline-block;
	margin-right: 17px;
	margin-left: 17px;

	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
}

.nav > .nav-content > .nav-inner > .nav-box > .nav-link {
	cursor: pointer;

	color: #2F5BB7;
}

.nav > .nav-content > .nav-inner > .nav-box > .nav-link:last-child {
	/* margin-right: 80px; */
}