How do you create a horizontal navigation bar? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do you create a horizontal navigation bar?

Had an already existing side bar, which now has to become a horizontal navigation bar.

17th Nov 2017, 6:50 PM
Tdog
2 Answers
+ 11
You can do this by using the nav tag and lists. <nav> <ul> <li><a href="#">Home</a></li> . . </ul> </nav> in the css file maybe u have to make a change for to put the menu in horizontal mode. check display: inline.
17th Nov 2017, 6:58 PM
Malkon F
Malkon F - avatar
+ 1
display: inline-block or inline. they have to be able to fit like that i think though.
19th Nov 2017, 2:59 AM
Black Frost
Black Frost - avatar