Name
list-style-position — NN n/a IE 4 CSS 1
Synopsis
Inherited: Yes
Determine whether the marker is inside or outside (outdented) from
the box containing the list item’s content. When the
list-style-position is set to
inside and the content is text, the marker appears
to be part of the text block. In this case, the alignment (indent) of
the list item is the same as normal, but without the outdented
marker. Figure 10.6 demonstrates the effects of both
settings on wrapped list item text. Note that in Internet Explorer 4
for Macintosh (not shown), wrapped text lines extend all the way to
the left margin of the UL or OL
element.

Figure 10-6. Results of list-style-position settings (Windows 95)
CSS Syntax
list-style-position: inside | outside
Value
Any of the constant values: inside |
outside.
Initial Value
outside
Example
UL {list-style-position: inside}Applies To
DD, DT, LI,
OL, and UL elements and any
other element assigned the display:list-item style
attribute.
Object Model Reference
- IE
[window.]document.all.elementID.style.listStylePosition
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access