JSFiddle - React, Tailwind, and code Playground
by akang2
HTML
<html>
<body>
<div id="container">
<ul id="nav">
<li><a href="#">Home</a></li>
</ul>
</div>
</body>
</html>
CSS
#container {
width: 600px;
position: relative;
margin: 20px auto 0;
}
ul#nav {
list-style: none;
height: 36px;
padding: 0;
margin-left: 100px;
display: inline-block;
border: 1px solid #b3b3b3;
position: relative;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
ul#nav li {
text-align: left;
}
ul#nav>li {
float: left;
border-top: 1px solid white;
position: relative;
background-repeat: no-repeat;
background-color: #cfcfcf; /* Old browsers */
background-image: -moz-linear-gradient(top, #e3e3e3 0%, #cfcfcf 100%); /* FF3.6+ */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e3e3e3), color-stop(100%,#cfcfcf)); /* Chrome,Safari4+ */
background-image: -webkit-linear-gradient(top, #e3e3e3 0%,#cfcfcf 100%); /* Chrome10+,Safari5.1+ */
background-image: -o-linear-gradient(top, #e3e3e3 0%,#cfcfcf 100%); /* Opera 11.10+ */
background-image: -ms-linear-gradient(top, #e3e3e3 0%,#cfcfcf 100%); /* IE10+ */
background-image: linear-gradient(top, #e3e3e3 0%,#cfcfcf 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e3e3e3', endColorstr='#cfcfcf',GradientType=0 ); /* IE6-8 */
}
ul#nav>li>a {
padding: 10px 15px;
color: #777;
text-decoration: none;
font: 12px Arial;
border-left: 1px solid #bababa;
border-right: 1px solid #eee;
display: block;
line-height: 15px;
-webkit-transition: all .2s ease;
-moz-transition: all .2s ease;
-ms-transition: all .2s ease;
-o-transition: all .2s ease;
transition: all .2s ease;
}
ul#nav>li>a,ul#nav>li {
border-left: none;
-webkit-border-radius: 4px 0 0 4px;
-moz-border-radius: 4px 0 0 4px;
border-radius: 4px 0 0 4px;
}
/*
ul#nav li:last-child a, ul#nav li:last-child {
border-right: none;
-webkit-border-radius: 0 4px 4px 0;
-moz-border-radius: 0 4px...