Easy Tutorial
❮ Prop Range Type Prop Win Status ❯

listStyle Property


Definition and Usage

The listStyle property sets or returns three independent list properties in a shorthand form.

With this property, you can set/return:

Syntax

Set the listStyle property:

Return the listStyle property:

Tip: The default value for the listStyle property is "disc outside none".

Parameter Description
type Defines the type of the list item marker.
position Positions the list item marker.
image Defines an image as the list item marker.
inherit The value of the listStyle property is inherited from the parent element.

Browser Support

All major browsers support the listStyle property.

Note: IE7 and earlier versions do not support the "inherit" value. IE8 only supports "inherit" if the !DOCTYPE is specified. IE9 supports "inherit".


Example

Change the style of a list:

❮ Prop Range Type Prop Win Status ❯