2
Good people, here’s the thing, I’ve been after it for a while. I’ve been trying to box around the links in hover
, this box will have a shadow and rounded corners, someone can 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>
Box example: https://w3layouts.com/preview/? l=/boombox-a-entertainment-Category-flat-bootstrap-Responsive-template/
The box I want is na li.
Nelson please edit your question by putting the code in writing, not image. From a Ctrl+c and a Ctrl+v here with your html / css code that will make it easy for us to respond. If possible put an image of the layout you want, an example of how you want Box and where it will be, in LI or Nav as a whole. Try to explain better
– hugocsl