Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
a {
color: green;
text-decoration: none;
cursor: pointer;
display: block;
font-size: 15px;
font-weight: 300;
position: relative;
padding: 0 5px;
a:after {
position: absolute;
left: 50%;
right: 50%;
bottom: 0;
height: 2px;
background: #c2c2c2;
content: "";
transition: all .4s;
line-height: 0;
a:hover:after {
left: 0;
right: 0;
ul {
display: flex;
ul li {
margin: 0 8px;
<li><a href="#!">Home</a></li>
<li><a href="#!">Work</a></li>
<li><a href="#!">About</a></li>
<li><a href="#!">Contact</a></li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment