JSFiddle - React, Tailwind, and code Playground

by akang2

HTML

<html>
<body>
    <nav>
        <ul>
            <li><a href="#">Home</a></li>
            <li><a href="#">Staff</a></li>
            <li><a href="#">Grants</a></li>
        </ul>
    </nav>
</body>
</html>

CSS

body {
    font-family: helvetica;
}

nav /*this gets you the 5px solid border and 1px solid border */ {
    width: 140px;
    border: 1px solid #999;
    padding: 5px;
    background: #e5e6e8; /* Old browsers */
}

ul /*this gets you the inner gradient that goes l-to-r */ {
    margin: 0px auto;
    padding: 0px;
    background: -moz-linear-gradient(left,  #f2f2f4 0%, #f9f9f9 25%, #eff0f2 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#f2f2f4), color-stop(25%,#f9f9f9), color-stop(100%,#eff0f2)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left,  #f2f2f4 0%,#f9f9f9 25%,#eff0f2 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left,  #f2f2f4 0%,#f9f9f9 25%,#eff0f2 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left,  #f2f2f4 0%,#f9f9f9 25%,#eff0f2 100%); /* IE10+ */
background: linear-gradient(to right,  #f2f2f4 0%,#f9f9f9 25%,#eff0f2 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f4', endColorstr='#eff0f2',GradientType=1 ); /* IE6-9 */
}

li {
    /*width: 100%;*/
    height: 80px;
    line-height: 80px;
    border-bottom: 1px solid #e5e6e8;
    text-align: center;
}

li a {
    width: 30%;
    margin: 0px auto;
    color: #333;
    text-decoration: none;
}

JavaScript

//NAV montagable pieces

/*Support for full multi-stop gradients with IE9 (using SVG).
Add a "gradient" class to all your elements that have a gradient, and add the following override to your HTML to complete the IE9 support:

<!--[if gte IE 9]>
  <style type="text/css">
    .gradient {
       filter: none;
    }
  </style>
<![endif]-->*/