I have this code:
.menu {
margin: auto;
padding: 0;
list-style-type: none;
}
.item {
width: 60px;
text-align: center;
font-size: 4em;
background-color:red;
display: inline-block;
margin: 5px;
padding: 25px;
}
<ul class="menu">
<li class="item">1</li>
<li class="item">2</li>
<li class="item">3</li>
<li class="item">4</li>
<li class="item">5</li>
<li class="item">6</li>
<li class="item">7</li>
<li class="item">8</li>
<li class="item">9</li>
<li class="item">10</li>
</ul>
I want to center align the entire ul container, while keeping the li items aligned to left.
So instead of this:
I want to have something like this:
I can't seem to make it work..
Any help would be appreciated.
Thanks in advance!

