Please help If i click anchor tag then this page is active and background colour changed. <ul> <li><a href="index.php">HOME</a></li> <li><a href="two.php">PORTFOLIO</a></li> <li><a href="three.php">ABOUT</a></li> <li><a href="four.php">CONTACT</a></li> <li><a href="five.php">SHOP</a></li> </ul>
You try this CSS style: I hope you asking for this only. //normal link ul li a { color:#FFF; } //while mouse hover ul li a:hover { color:#FFF; } //hold the link ul li a:active { color:#FC0; } //after clicked ul li a:visited { color:#ff0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)