CSS Active menu -


what best way add active class on css menu?

.vertical-nav{     width:200px;     height:auto;     list-style:none;     float:left;     margin-right:40px; } .vertical-nav li{     width:200px;     height:25px;     margin:5px;     padding:5px;     background-color:#666666;     border:none;     text-align:center;     float:left; } .vertical-nav li:hover{     background-color:#f36f25;     color:#ffffff; } .vertical-nav li a{     font-family:calibri, arial;     font-size:18px;     font-weight:bold;     color:#ffffff;     text-decoration:none; } 

i add on .vertical-nav li:active { } way can modify both <li> , <a> properties


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -