Check out the live demonstration here: https://jsfiddle.net/h8uxmoj4/
ol, ul {
padding-left: 0;
}
li {
list-style: none;
padding-left: 1.25rem;
position: relative;
}
li::before {
left: 0;
position: absolute;
}
ol {
counter-reset: counter;
}
ol li::before {
content: counter(counter) ".";
counter-increment: counter;
}
ul li::before {
content: "●";
}
Due to the ambiguous nature of the initial question, I have endeavored to address the issue based on insights provided by other responses. Specifically:
- Ensuring consistency in alignment between list markers and surrounding paragraph text
- Accommodating multiline text within a single list item
Furthermore, I aimed for a solution that does not rely on assumption regarding uniform padding across browsers. A numbered list has been included as part of this approach.