Fandom

HTML & CSS Wiki

List-style-position

649pages on
this wiki
Add New Page
Comments0 Share

The CSS list-style-position determines how the list-marker in HTML list structures is rendered in relation to the content of the list item.

Values

Value Description
inherit Explicitly sets the value of this property to that of the parent.
outside This specifies that all list item content will be rendered indented from the list-marker.
inside This renders wrapped content at a similar indentation level to the list-marker.


HTML example:

<ul>
<li style="list-style-position:inside;">TEXT</li>
</ul>


CSS example:

li {
    list-style-position:inside;
}

See Also

External Links

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.