Tutorial 1 - Background images for bullets

Variation - setting a list width

If the list does not sit within a containing box, you can use the "UL" to control the overall list width.

Go to Adding space around list items →

CSS CODE
ul
{
list-style-type: none;
padding: 0;
margin: 0;
text-align: right;
width: 10em;
}

li
{
background-image: url(arrow.gif);
background-repeat: no-repeat;
background-position: 100% .4em;
padding-right: .6em;
}


HTML CODE
<ul>
<li><a href="#">Milk</a></li>
<li><a href="#">Eggs</a></li>
<li><a href="#">Cheese</a></li>
<li><a href="#">Vegetables</a></li>
<li><a href="#">Fruit</a></li>
</ul>
Other Max Design articles and presentations
Associated with webstandardsgroup.org