Three values for list-style-type (disc, circle, and square) generate a bullet shape, just as browsers have been doing for unordered lists for years. The actual design and rendering of each bullet shape is left to the user agent. In other words, there is no way to alter the color, size, or other presentation attributes of a generated bullet. Figure 23-1 shows each of the bullet markers .

list-style-type: disc, circle, and square

Figure 23-1. list-style-type: disc, circle, and square

The remaining value keywords specify various numbering and lettering styles. Table 23-1 lists the keyword and numbering types provided in CSS 2.1.

Table 23-1. Lettering and numbering system keywords in CSS 2.1

Keyword

System

decimal

1, 2, 3, 4, 5...

decimal-leading-zero

01, 02, 03, 04, 05...

lower-alpha

a, b, c, d, e...

upper-alpha

A, B, C, D, E...

lower-latin

a, b, c, d, e... (same as lower-alpha)

upper-latin

A, B, C, D, E... (same as upper-alpha)

lower-roman

i, ii, iii, iv, v...

upper-roman

I, II, III, IV, V...

lower-greek

Lowercase classical Greek symbols

Tip

A handful of numbering keywords that were included in CSS 2 were removed from 2.1 due to the difficulty in implementing them and the resulting poor browser support. They include: hebrew, cjk-ideographic, and the Japanese numbering systems katakana, katakana-iroha, hiragana, and hiragana-iroha. Additionally, the values armenian and georgian were in a CSS ...

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.