Answer the question
In order to leave comments, you need to log in
How to highlight active menu items on the landing page?
Good afternoon!
There is a menu:
<div class="nav">
<ul>
<li><a href="index.html" class="active">Home</a></li>
<li><a href="#service">Service</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#team">Team</a></li>
<li><a href="#tarifs">Tarifs</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
.nav{
position: fixed;
top: 0;
width: 100%;
z-index: 9999;
background: #fff url("../images/logo.png") no-repeat 8.313em 1.938em;
line-height: 6.25em;
}
.nav ul{
margin-left: 51%;
}
.nav ul li{
display: inline-block;
margin-right: 0.625em;
}
.nav ul li a{
display: block;
text-decoration: none;
color: #484c55;
padding: 0 1.25em;
}
.nav ul li a:hover,
.nav ul li a:focus,
.nav ul li a.active{
background: #f8f9fb;
color: #90dbdd;
borde
Answer the question
In order to leave comments, you need to log in
In! I suffered from the phone, but I did it, because it was interesting myself :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question