Prev Demo
Active And Current Navigation Bar
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:not(.active) { background-color:red; } .active { background-color: green; } </style> </head> <body> <p>Active and current Navigation bar</p> <ul> <li><a href="#home">TechFunda</a></li> <li><a href="#news">DotNetFunda</a></li> <li><a href="#contact">ITFunda</a></li> <ul style="float:right;list-style-type:none;"> <li><a class="active" href="#about">Register</a></li> <li><a href="#login">Login</a></li> </ul> </ul> </body> </html>
Note: We DO NOT save your trial code in our database.
Output