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?
2 Antworten
+ 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;
}
0
Thank you.