You can define the way that list items are enumerated on the page. The specific details depend on whether the list item is a member of an ordered list (<OL>) or an unordered list (<UL>).
The following keywords are appropriate for use with unordered lists:
circle
disc
square
The default setting for an unordered list will be a disc.
The following keywords are appropriate for an ordered list:
decimal
lower-alpha
lower-roman
upper-alpha
upper-roman
The default setting for an ordered list is decimal.
The keywords for this property correspond with the values defined in UL.type and OL.type object properties. Although the notation is different the displayed artefacts will be the same.
This display control property is completely overridden if the listStyleImage property is set to a URL for an image. As long as the listStyleImage property is set to "none" or an empty ("") string this property comes into play.
Prev | Home | Next |
style.listStylePosition | Up | style.margin |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |