Name

listStyle — NN n/a IE 4 DOM n/a

Synopsis

Read/Write

A shorthand property for setting up to three list-style properties in one assignment statement. Whichever attributes you don’t explicitly set with this attribute assume their default values. These properties define display characteristics for the markers automatically rendered for list items inside OL and UL elements.

Example

document.all.itemList.style.listStyle = "square outside none"

Value

See the individual attribute entries for listStyleType, listStylePosition, and listStyleImage for details on acceptable values for each. You may include one, two, or all three values in the list-style attribute setting in any order you wish.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.