Sometimes, we want to keep the indent for the second line in ordered lists via CSS.
In this article, we’ll look at how to keep the indent for the second line in ordered lists via CSS.
How to keep the indent for the second line in ordered lists via CSS?
To keep the indent for the second line in ordered lists via CSS, we set the list-style-position
property.
For instance, we write
ul {
list-style-position: outside;
}
to apply the list-style-position: outside;
style on the ul element to keep the indent for the 2nd line of each li element in the ul.
Conclusion
To keep the indent for the second line in ordered lists via CSS, we set the list-style-position
property.