Ar 19/10/10 23:52, ysgrifennodd Andrew Cunningham :
ol { counter-reset: item; }
ol li { display: block; }
ol li:before {
    content: "(" counter(item, decimal) ") ";
    counter-increment: item;
}

ol ol li:before {
     content: "(" counter(item, lower-alpha) ") ";
     counter-increment: item;
}

ol ol ol li:before {
     content: "(" counter(item, lower-roman) ") ";
     counter-increment: item;
}

Hi Andrew,

Certainly does work for me: in Firefox, anyway. I guess that IE results might be mixed. Would that be right? I haven't got IETester handy at the moment. Assuming that's so, and if I get decent results in IE8, I could probably persuade the client that they can live with that. I'll just use ordinary list formatting for any problematic IEs.

Do you have a reference where I could check that stuff out? Preferably something I'll have a fighting chance of understanding (given that I'm pretty happy with the basics of CSS).

:-)

But thanks a lot for that.  It's good stuff.

Cheers


Peter
--

http://www.peredur.net

______________________________________________________________________
css-discuss [[email protected]]
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