Indent the list-item marker:
The listStylePosition property sets or returns the position of the list-item marker.
The listStylePosition property is supported in all major browsers.
Return the listStylePosition property:
Set the listStylePosition property:
Value | Description |
---|---|
outside | The list-item marker will be rendered before any text content. This is default |
inside | Indents the list-item marker marker |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | outside |
---|---|
Return Value: | A String, representing the position of the list-item marker |
CSS Version | CSS1 |
Return the position of the list-item marker:
CSS tutorial: CSS List
CSS reference: list-style-position property
HTML DOM reference: listStyle property