Answers for "center li with respect to a div"

0

center unordered list html

ul {
  display: table;
  margin: 0 auto;
}
Posted by: Guest on December-11-2020
0

how to align list to the centre in css

<div id="menu-centered">
     <ul>
          <li><a href="">My first item</a></li>
          <li><a href="">My second item</a></li>
          <li><a href="">My third item</a></li>
          <li><a href="">My fourth item</a></li>
          <li><a href="">My fifth item</a></li>
     </ul>
</div>
Posted by: Guest on May-21-2020

Code answers related to "center li with respect to a div"

Browse Popular Code Answers by Language