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
.
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 |
---|---|
|
1, 2, 3, 4, 5... |
|
01, 02, 03, 04, 05... |
|
a, b, c, d, e... |
|
A, B, C, D, E... |
|
a, b, c, d, e... (same as |
|
A, B, C, D, E... (same as |
|
i, ii, iii, iv, v... |
|
I, II, III, IV, V... |
|
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.