Skip to content

How To Keep Indentation For The Second Line Onwards In Your Lists (CSS / HTML)

If you’re trying to preserve indentation for your lists, especially when you have multiple lines, then this is the code that you need. It’s fast, east, simple, and works to keep the indentation for the second line onwards (per bullet-point). As you’d imagine, this will work for both ordered (OL) and unordered (UL) lists.

li {
list-style-position: inside;
text-indent: -1em;
}

5 thoughts on “How To Keep Indentation For The Second Line Onwards In Your Lists (CSS / HTML)”

Leave a Reply

Your email address will not be published. Required fields are marked *