The list-style property: combine three separate properties, list-style-type, list-style-image, and list-style-position
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
<head>
<title>list-style</title>
<style type='text/css'>
li {
background: lightyellow;
border: 1px solid gold;
padding: 5px;
margin: 2px;
}
li#marker {
list-style: square;
}
li#position {
list-style: inside;
}
li#image {
list-style: url('arrow.png');
}
li#marker-position {
list-style: square inside;
}
li#marker-image {
list-style: square url('arrow.png');
}
li#image-position {
list-style: url('arrow.png') inside;
}
li#all-three {
list-style: square url('arrow.png') inside;
}
</style>
</head>
<body>
<ul>
<li id='marker'>You can specify only a marker.</li>
<li id='position'>You can specify only the position.</li>
<li id='image'>You can specify only a marker image.</li>
<li id='marker-position'>The marker and the position can be specified.</li>
<li id='marker-image'>The marker and the image can be specified.</li>
<li id='image-position'>The image and the position can be specified.</li>
<li id='all-three'>Or you can specify all three styles.</li>
</ul>
</body>
</html>
Related examples in the same category