Name

list-style-position

Values:

inside|outside

Example:

OL { list-style-position: outside }

Applies to:

Elements with “display” property set to “list-item”

Inherited:

Yes

This property specifies whether list items should be set with a hanging indent. The inside value makes subsequent lines of a list item wrap all the way to the left margin of the list item (under the list item marker). The outside value starts subsequent lines under the first word of the list item, creating a hanging indent.

Get Web Design in a Nutshell 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.