Style listStyle Property
Style listStyle Property
The listStyle property is used to either set or return up to three separate list properties. It is basically a shorthand property. Properties in it are:-
- list-style-type
- list-style-position
- list-style-image
Syntax:-
Its syntax is:- object.style.listStyle OR object.style.listStyle = type position image|initial|inherit
Return:-
Its return is:- string containing style of a list
Further Explanation:-
Parameter | Description |
---|---|
type | Defines list-item marker type. |
position | Positions the list-item marker. |
image | Defines an image to be used as the list-item marker. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |