The list-style property is a shorthand property for setting all list-style properties.
ul {
list-style: square inside url(image/mark.gif);
}
| Property | Value | Explanation |
|---|---|---|
| list-style | each value | sets type, position, and image |
list-style: square inside url(image/mark.gif);
| list-style: | square | inside | url(image/mark.gif) | ; |
|---|---|---|---|---|
| list-style- | type | position | image |
The unnecessary values can be omitted.
list-style: square inside;
<html>
<head>
<title>TAG index</title>
<style type="text/css">
ul { list-style: square inside url(image/mark.gif); }
</style>
</head>
<body>
<ul>
<li>First list item<br>Example text</li>
<li>Second list item<br>Example text</li>
<li>Third list item<br>Example text</li>
</ul>
</body>
</html>