The list-style-type property sets whether there is a label and, if so, its appearance.
You can set the style of the label by specifying either a keyword or a URL. The property has nine values that are keywords. They can be divided into groups as follows. To set the label to a predefined symbol:
To set the label to a number:
The final keyword, none, suppresses the label. However, none does not suppress the counting in a numbered list. If the next list item has a visible label, it will be two numbers higher than the item before the invisible label. For example, suppose you have a list of three list items and the value of the second item is set to none. The first item will be numbered 1 and the last item will be numbered 3, even though there is no visible number 2 next to the second item. It will look like this:
The following are several examples of rules that set labels: OL { list-style: lower-alpha } /* a b c d... */ OL { list-style: lower-roman } /* i ii iii... */ UL UL { list-style: square } /* square bullet */ LI.nolabel { list-style: none } /* no label */ UL UL.compact { list-style: circle } /* circle */ |