centering a list
snippet in html

centering a list

user1817

<div>
    <ul>
        <li>Item 1</li>
        <li>Item 2</li>
        <li>Item 3</li>
    </ul>
</div>

<style>
    div {
        text-align: center;
    }
    ul {
        display: inline-block;
        text-align: left;
    }
</style>

center li in ul css

user599

.list-wrapper {
   text-align: -webkit-center;
}
.list-wrapper ul {
    display:block;
}   

center unordered list html

user9049

ul {
  display: table;
  margin: 0 auto;
}