Skip to content

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

January 10, 2015

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;
}

Related Posts.