JSFiddle - React, Tailwind, and code Playground
HTML
<nav>
<a title="Profile" href="#"></a>
<a title="Messages" href="#"></a>
<a title="Contacts" href="#"></a>
<a title="Portfolio" href="#"></a>
<a title="CSS-live" href="#"></a>
</nav>
CSS
body {
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 20px;
background: #eceff1;
}
nav {
width: 150px;
margin: 100px auto;
border: 1px solid #d8d8d8;
background: #fff;
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
nav a {
display: block;
height: 20px;
padding: 6px 10px;
line-height: 20px;
color: #7f8c8d;
text-decoration: none;
border-bottom: 1px solid #f0f0f0;
}
nav a:last-child {
border-bottom: none;
}
nav a:after {
content: attr(title) "";
display: inline-block;
margin-left: 8px;
}
nav a:before {
content: "";
display: inline-block;
width: 16px;
height: 16px;
vertical-align: middle;
opacity: 0.65;
background-image:...