Prev Demo
Navigation Bar With Active Element
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <style> ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; } li { float: left; } li a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } li a:hover { background-color: green; } .active{ background-color:limegreen; } </style> </head> <body> <p><i>Horizontal navigation bar with active element</i></p> <ul> <li class="active"><a class="active" href="#home">ASP.NETMVC</a></li> <li><a href="#news">ANGULARJS</a></li> <li><a href="#contact">SQLSERVER</a></li> <li><a href="#about">jQUERY</a></li> </ul> </body> </html>
Note: We DO NOT save your trial code in our database.
Output