Home > OS >  How to fix html ordered list?
How to fix html ordered list?

Time:07-07

I converted docx file to html file enter image description here

CodePudding user response:

It's the text-align:center on the li that's positioning it that way. If you don't want that then just remove it. The code would look something like this:

<ol style='margin-top:0cm' start=1 type=1>
 <li class=MsoNormal style='margin-right:2.15pt'><b><span
     style='font-size:12.0pt;letter-spacing:-.3pt'>Предмет договора.</span></b></li>
</ol>

CodePudding user response:

Remove text-align:center from <li class=MsoNormal style='margin-right:2.15pt;text-align:center'>.

Before:

<ol style='margin-top:0cm' start=1 type=1>
 <li  style='margin-right:2.15pt;text-align:center'><b><span
     style='font-size:12.0pt;letter-spacing:-.3pt'>Предмет договора.</span></b></li>
</ol>

After:

<ol style='margin-top:0cm' start=1 type=1>
 <li class=MsoNormal style='margin-right:2.15pt;'><b><span
     style='font-size:12.0pt;letter-spacing:-.3pt'>Предмет договора.</span></b></li>
</ol>
  • Related