Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
deleted 5 characters in body
Source Link
Henfs

Use "padding-left:1em; text-indent:-1em" for the LI-tag, and then list-style-position:insidepadding-left:1em; text-indent:-1em for the UL-tag<li> tag. 
It worksThen, list-style-position: inside for methe <ul> tag.

<ul style='list-style-position: inside;'>
  <li style='padding-left:1em;text 1em; text-indent: -1em;'>Item 1</li>
</ul>

Use "padding-left:1em; text-indent:-1em" for the LI-tag, and then list-style-position:inside for the UL-tag. It works for me.

<ul style='list-style-position:inside;'>
<li style='padding-left:1em;text-indent:-1em;'>Item 1</li>
</ul>

Use padding-left:1em; text-indent:-1em for the <li> tag. 
Then, list-style-position: inside for the <ul> tag.

<ul style='list-style-position: inside;'>
  <li style='padding-left: 1em; text-indent: -1em;'>Item 1</li>
</ul>
Source Link
James Yu

Use "padding-left:1em; text-indent:-1em" for the LI-tag, and then list-style-position:inside for the UL-tag. It works for me.

<ul style='list-style-position:inside;'>
<li style='padding-left:1em;text-indent:-1em;'>Item 1</li>
</ul>
lang-html