" counter(section) " ";
}
These style rules apply a hierarchical numbering system to items in ordered lists
(for example, 1, 1.1, 1.1.1 ??¦ and so on):
ol {
counter-reset: item;
margin: 0;
padding: 0;
}
Generated Content
The Ultimate CSS Reference 350
ol>li {
counter-increment: item;
list-style: none inside;
}
ol>li:before {
content: counters(item, ".") " - ";
}
Value
The value of content is either the keyword none, the keyword normal, the keyword
inherit, or one or more content specifications (strings, URIs, counters, or quote
characters) separated by whitespace.
Using the value normal, we can reset or clear a previously specified content
declaration. From an authoring standpoint, there??™s no real difference between the
values normal and none, except that there??™s currently no browser support for none.
According to the CSS2.1 specification,1 if none is specified, the pseudo-element
isn??™t generated, and if normal is specified for the :before (p. 113) or :after (p.
Pages:
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513