0

How do you make <nav> horizontal?

Would like Navigation links to be horizontal or aligned to the right, how would a coder do that?

18th Dec 2019, 2:33 PM
SwanE
SwanE - avatar
2 Respuestas
+ 1
If you're using list items in your nav then simply use display:inline property HTML: <nav> <ul> <li>Contact </li> <li>About </li> <li>Home </li> </ul> </nav> CSS: ul { list-style-type: none; } li { display: inline; }
18th Dec 2019, 3:42 PM
HNNX 🐿
HNNX 🐿 - avatar
0
Thank you.
18th Dec 2019, 4:25 PM
SwanE
SwanE - avatar