Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html>
<style>
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;
list-style-type:none;
}
ul li {
margin: 0 8px;
}
</style>
<body>
<ul>
<li><a href="#!">Home</a></li>
<li><a href="#!">Work</a></li>
<li><a href="#!">About</a></li>
<li><a href="#!">Contact</a></li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment