I have a ul
centered to the screen but the list items get displayed 1 by 1 vertically and I'd like to have them displayed horizontally. This is the code:
<nav style="margin: 0; padding: 0; text-align: center;">
<ul style="list-style: none; display: inline;">
<li><a href=""> obj1</a></li>
<li><a href=""> obj2</a></li>
<li><a href=""> obj3</a></li>
<li><a href=""> obj4</a></li>
<li><a href=""> obj5</a></li>
<div style="clear: both;"></div>
</ul>
</nav>