2011-11-17 1:38, Angela French wrote:

I got it to work with list-style-type decimal, but not alpha.
Any way to make it start on a particular letter?

The idea at
http://timmychristensen.com/css-ordered-list-numbering-examples.html
is that you don't use list-style-type (but set it to none and generate your own numbering). So I think you mean to ask how to create an effect that corresponds to list-style-type: lower-alpha or list-style-type: upper-alpha (mere alpha won't do anyway).

The answer is that you pass the desired keyword as the second argument to counter(), e.g. changing
    content: counter(chapter) ". ";
to
    content: counter(chapter, lower-alpha) ". ";

You need to set the start value (in the value for the counter-reset property) as a number, using the ordinal number of the desired letter in the alphabet minus one. E.g., to start at "c", you would set
    counter-reset: chapter 2;

Yucca
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to