Below is a list with customized styling:
ol {
background: #ff9999;
padding: 20px;
list-style-position: inside;
}
ol li {
background: #ffe5e5;
padding: 5px;
}
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ol>
I am facing an issue where the text in each list item wraps and aligns with the number, rather than remaining left-aligned independently. I want the text to be aligned within itself and not with the number. How can I achieve this?
Here is a screenshot illustrating the problem: https://i.sstatic.net/lx0UR.png