Well folks, it's the following, I've been following this for some time. I'm trying to make a box around the links in hover
, this box will have a shadow and rounded corners, can someone help me?
Thanks in advance
.main-nav {
background-color: #2c3136;
width: 100%;
height: 70px;
text-align: center;
box-shadow: 0 0 5 0 #000;
}
.main-nav li {
display: inline;
list-style: none;
}
.main-nav li a {
text-decoration: none;
color: white;
margin-right: 50px;
font-size: 90%;
font-weight: bold;
}
.main-nav li a:link .main-nav li a:visited {
padding: 8 0;
color: #fff;
background: transparent;
transition: background 0.3s ease-in-out;
}
.main-nav li a:hover,
.main-nav li a:active {
color: #fff;
background: #5a5a5a;
transition: background 0.3s ease-in-out;
}
<div class="row">
<nav class="main-nav nav-js">
<img class="logo" src="" alt="">
<ul>
<li><a href="#about_us">ABOUT US</a></li>
<li><a href="#search">SEARCH</a></li>
<li><a href="#top_artists">TOP ARTISTS</a></li>
<li><a href="#contacts">CONTACTS</a></li>
</ul>
</nav>
</div>
Example box: link
The box I want is in the li.