How to orientation this list to horizontal? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to orientation this list to horizontal?

Code <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">Services</a></li> <li><a href="#">About us</a></li> </ul> </nav> In nav view there is list of element in a order of vertical form and I need to display horizontal list Please comment answer and if like this question please upvote

28th Oct 2019, 7:36 AM
siva naga anil Gubbala
siva naga anil Gubbala - avatar
2 Answers
+ 5
What if you make the display of the <li> inline? (using css)
28th Oct 2019, 7:53 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 4
li { float: left; }
28th Oct 2019, 9:14 AM
Calviղ
Calviղ - avatar