I'm currently building a dynamic Website using PHP
I'm having a nav menu like this:
<nav>
<ul class="menu">
<li class="current"><a href="?p=home">Startseite</a></li>
<li><a href="?p=cars">Fahrzeuge</a></li>
<li><a href="?p=anfahrt">Anfahrt</a></li>
<li><a href="?p=impressum">Impressum</a></li>
</ul>
Currently I'm indicating the clicked item by manually adding the css class "current" to that specific item. But, as my website is dynamic, since PHP is including files instead of having the pages manually, I need to indicate it programmatically, how do I go about that? Any Help is greatly appreciated My CSS:
header .highlight, header .current a{
color:#e8491d;
font-weight:bold;
}
header a:hover, header li.active{
color:#cccccc;
font-weight:bold;