List style position

noun

say it: “LIST STYLE puh-ZISH-un” /lɪst staɪl pəˈzɪʃən/

The CSS property that places a list's markers: outside, hanging in the list's indent so wrapped lines line up with the text, or inside, as the first thing on each item's 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; }

In a sentence

  • “With list-style-position: outside, the second line of each long step starts right under the first line's words.”
  • “Each tip had a pale blue background, so I set list-style-position to inside and the bullets moved into the colored boxes.”

Level: Apprentice · More CSS terms at this level

Updated