Prev Demo
Navigation Bar With Bottom Property
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <style> body { margin: 0; } ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #808080; position: fixed; bottom: 0; width: 100%; } 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:black; } .active { background-color: green; } </style> </head> <body> <p><i>Navigation bar in bottom</i></p> <ul> <li><a class="active" href="#home">Articles</a></li> <li><a href="#news">Interviews</a></li> <li><a href="#contact">Forums</a></li> <li><a href="#about">Register</a></li> </ul> <div style="padding:20px;background-color:black;height:1500px;color:white"> <h1>Fixed Bottom Navigation Bar</h1> <h2>Scroll this page to see the effect</h2> <h2>The navigation bar will stay at the bottom of the page while scrolling</h2> <p> Have a .NET related question or topic to discuss? Write a Post and get responses from community members. You can also respond to the existing posts and win monthly prizes as well as gain community credit points.</p> <p>Have a .NET related question or topic to discuss? Write a Post and get responses from community members. You can also respond to the existing posts and win monthly prizes as well as gain community credit points.</p> <p>Have a .NET related question or topic to discuss? Write a Post and get responses from community members. You can also respond to the existing posts and win monthly prizes as well as gain community credit points.</p> <p>Have a .NET related question or topic to discuss? Write a Post and get responses from community members. You can also respond to the existing posts and win monthly prizes as well as gain community credit points.</p> </div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output