Check out example codes for "how to center an ordered list in html". It will help you in understanding the concepts better.

Code Example 1


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


<ol class="center">Lorem ipsum dolor sit amet consectetur adipisicing elit. Reprehenderit, repellat.

Code Example 2

<!DOCTYPE html>
  <meta charset="utf-8">
    li {list-style-position: inside;}
  <li style="text-align: left">item 1</li>
  <li style="text-align: center">item 2</li>
  <li style="text-align: right">item 3</li>

Learn ReactJs, React Native from