Prev Demo
List With Float
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <style> ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; } li { float: left; } li a { display: block; padding: 8px; background-color: #808080; color:palegoldenrod; } </style> </head> <body> <p><i>Float is used to create horizontal navigation bar</i></p> <ul> <li><a href="#techfunda">TechFunda</a></li> <li><a href="#DotNetFunda">DotNetFunda</a></li> <li><a href="#ITFunda">ITFunda</a></li> <li><a href="#KidsFunda">KidsFunda</a></li> </ul> </body> </html>
Note: We DO NOT save your trial code in our database.
Output