list-style-position property
Specifies whether the list marker for a list item should appear inside or outside the list-item box.
JavaScript page for this property: listStylePosition. You can find other example(s) there. |
Possible values:
One of the following values:
Takes the value of this property from the computed style of the parent element. | |||||||
List-marker is inside the text, and wrapped text content will be rendered at an indentation level similar to the marker. | |||||||
Default. The list-marker will be rendered before any text content. |
Default: outside.
Example HTML code 1:
This example illustrates the use of the list-style-position property:
|
||||
<body> <ol style="list-style-position: inside;"> <li>inside <li>list <li>position </ol> <ol style="list-style-position: outside;"> <li>outside <li>list <li>position </ol> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
Related pages:
External links:
list-style-position (MSDN)
list-style-position (Mozilla Developer Center)
list-style-position (Safari Reference Library)
list-style-position (W3C)
list-style-position (Mozilla Developer Center)
list-style-position (Safari Reference Library)
list-style-position (W3C)
User Contributed Comments