Name

list-style-position

Synopsis

Specifies the position of the marker relative to the content area of the list. By default, the marker is placed some distance outside the border edge. Setting it to inside makes the marker behave as an inline element at the beginning of the list item.

Values:

inside | outside | inherit

Initial value:

outside

Applies to:

Elements whose display value is list-item (in HTML, the li element by default).

Inherited:

Yes.

Computed value:

As specified.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.