CSS Property: list-style-position
Whether a marker for a list item should appear inside or outside the list item box.
Applies to boxes set to display: list-item
(of which li
HTML elements are by default).
Possible Values
Value | Description |
---|---|
outside | Marker sits outside the list item box. Default. |
inside | Marker sits inside the list item box. |
inherit |
Example
li { list-style-position: inside; }