HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Specify all the list properties in one declaration
The list-style
property is a shorthand for the
following properties:
If one of the values are missing, the default value for that property will be used.
Default value: | disc outside none |
---|---|
Inherited: | yes |
Animatable: | no. Read about animatable |
Version: | CSS1 |
JavaScript syntax: | object.style.listStyle="decimal inside" Try it |
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
list-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
Value | Description | Demo |
---|---|---|
list-style-type | Specifies the type of list-item marker. Default value is "disc" | Demo ❯ |
list-style-position | Specifies where to place the list-item marker. Default value is "outside" | Demo ❯ |
list-style-image | Specifies the type of list-item marker. Default value is "none" | Demo ❯ |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
CSS tutorial: CSS List
HTML DOM reference: listStyle property