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

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

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

Similar Posts:

By |2015-01-10T13:02:29+00:00January 10th, 2015|Programming & Code|0 Comments

About the Author:

Alvin Poh lives in Singapore, and is interested in marketing, techy stuff, and likes to just figure out how the two can work with each other. He can also be found on Google+.

Leave A Comment


*