Language
日本語
English

Caution

JavaScript is disabled in your browser.
This site uses JavaScript for features such as search.
For the best experience, please enable JavaScript before browsing this site.

CSS Dictionary

  1. Home
  2. CSS Dictionary
  3. list-style

list-style

Specifies multiple marker-related properties for li elements (and elements with 'display' set to 'list-item' or 'inline-list-item') in a single declaration. The three properties that can be specified together are the 'list-style-type' property, the 'list-style-image' property, and the 'list-style-position' property. The values can be specified in any order.

Sample Code

li.test { list-style: decimal inside;}
li.test1 { list-style: url(/sample.png) inside;}

Available Values

ValueDescription
list-style-typeThe initial value is 'disc'. See the 'list-style-type' property for details.
list-style-imageThe initial value is 'none'. See the 'list-style-image' property for details.
list-style-positionThe initial value is 'outside'. See the 'list-style-position' property for details.

Browser Display Result

<ul style="list-style: decimal inside;">
	<li>This is a li element.</li>
	<li>This is a li element.</li>
	<li>This is a li element.</li>
	<li>This is a li element.</li>
	<li>This is a li element.</li>
</ul>

<ul style="list-style: url(/dics/dictionary-css/img/list-style-image_1.png) inside;">
	<li>This is a li element.</li>
	<li>This is a li element.</li>
	<li>This is a li element.</li>
	<li>This is a li element.</li>
	<li>This is a li element.</li>
</ul>

※ This sample uses the following image (30px wide, 30px tall).

Browser Compatibility

Chrome Chrome
1+
Firefox Firefox
1+
Safari Safari
1+
Edge Edge
12+
Supported in all versions
IE IE
11
10
9
8
7
6
Opera Opera
7+
6 and earlier ×
iOS Safari iOS Safari
1+
Android Android Browser
4.4+
3 and earlier ×
Chrome Android Chrome Android
Latest
Same support as desktop
Firefox Android Firefox Android
Latest
Same support as desktop

※ Version data is based on MDN.

Details

Specifies multiple marker-related properties for li elements (and elements with 'display' set to 'list-item' or 'inline-list-item') in a single declaration. The three properties that can be specified together are the 'list-style-type' property, the 'list-style-image' property, and the 'list-style-position' property. The values can be specified in any order.

When the 'list-style' property is written, any unspecified values are reset to their initial values. Note that any 'list-style-type', 'list-style-image', or 'list-style-position' properties written before 'list-style' will be overwritten.

<ul style="list-style-image: url(/dics/dictionary-css/img/list-style-image_1.png); list-style: inside;">
	<li>This is a li element.</li>
	<li>This is a li element.</li>
	<li>This is a li element.</li>
	<li>This is a li element.</li>
	<li>This is a li element.</li>
</ul>

Note that when both 'list-style-type' and 'list-style-image' are specified at the same time, the value of 'list-style-image' takes priority.

If you find any errors or copyright issues, please .