Prev Demo
Navigation Bar With Borders
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; border:1px solid pink; } 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>Navigation bar with borders</p> <ul> <li><a class="active" href="#techfunda">TechFunda</a></li> <li><a href="#DotNetFunda">DotNetFunda</a></li> <li><a href="#ITFunda">ITFunda</a></li> <ul style="float:right;list-style-type:none;"> <li><a href="#FarmingFunda">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