Answers for "how to center unordered list in html"

0

how to center an ordered list in html

CSS

.center
{
 text-align: center;
 list-style-position: inside;
}
ol.center li
{
 text-align: left;
 margin-left: 45%;
}

HTML

<ol class="center">Lorem ipsum dolor sit amet consectetur adipisicing elit. Reprehenderit, repellat.
<li>List1<li>
<li>List2<li>
</ol>
Posted by: Guest on October-01-2020
0

center unordered list html

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

Code answers related to "how to center unordered list in html"

Browse Popular Code Answers by Language