List style position

Chooses where a list's bullet or number sits: hanging outside the item's box, or inside it on the first line.

What does list-style-position do?

list-style-position places the marker. outside, the default, hangs it in the list's indent, so when an item wraps onto a second line, both lines start at the same place. inside puts the marker inside the item's box, as the first thing on its first line, which suits items that have their own background or border.

.packing-list { list-style-position: inside; }

Level: Apprentice · More CSS terms at this level

Updated