list-style-position | NN 6 IE 4 CSS 1 |
Inherited: Yes | |
Determines 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 11-6 demonstrates the effects of both settings on wrapped list item text. |
|
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 | |
[window.]document.getElementById("elementID").style.listStylePosition
|