Choosing Your Markers (Bullets)When you create a list, be it ordered or unordered, you can also choose what sort of markers (bullets or numbers) should appear to the left of each list item. Figure 15.5. Here is our simple ordered list, to which we will apply capital Roman numerals (upper-roman).
To choose your markers: In the style sheet rule, type list-style-type: marker, where marker is one of the following values: disc (), circle (), square(), decimal (1, 2, 3, ...), upper-alpha (A, B, C, ...), lower-alpha (a, b, c, ...), upper-roman (I, II, III, IV, ...), or lower-roman (i, ii, iii, iv, ...) (Figure 15.6). Figure 15.6. You can apply the list-style-type property to any list item. If you had two lists on this page, one of which was unordered, you could apply capital Roman letters to just the ordered one by changing the selector in this example to ol li.
To display lists without markers: In the style sheet rule, type list-style-type: none. Tips
Figure 15.7. Now the ordered list has capital Roman numerals. Note that most browsers align numeric markers to the right.
|