Answer the question
In order to leave comments, you need to log in
How to teach to understand css that that particular page is currently selected?
How to teach css to understand that now this is how the page is selected.
Home:
<div class="header">
<ul class="menu">
<li><a class ="selected" href="/">Главная</a></li>
<li><a href="inf.html">О нас</a></li>
<li><a href="photo.html">Фотогалерея</a></li>
<div class="l1"></div>
</ul>
</div>
<div class="header">
<ul class="menu">
<li><a href="/">Главная</a></li>
<li><a class ="selected" href="inf.html">О нас</a></li>
<li><a href="photo.html">Фотогалерея</a></li>
<div class="l2"></div>
</ul>
</div>
<div class="header">
<ul class="menu">
<li><a href="/">Главная</a></li>
<li><a href="inf.html">О нас</a></li>
<li><a class ="selected" href="photo.html">Фотогалерея</a></li>
<div class="l3"></div>
</ul>
</div>
.header {
padding: 10px 25px;
width: auto;
height: 50px;
background: rgba(108, 167, 241, .9);
box-shadow: 2px 0 5px #555
}
ul.menu {
list-style: none;
margin-top: 13px
}
ul.menu li {
display: inline;
font: 15pt 'Roboto Condensed', sans-serif;
padding-left: 100px
}
ul.menu li a {
text-decoration: none;
color: rgba(255, 255, 255, 0.5)
}
ul.menu li a:hover {
color: rgba(255, 255, 255, 0.8)
}
ul.menu li a.selected {
color: #fff
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question