It occurred to me that I could number headings in CSS in a simple way, 
like

h2 { display: list-item;
      list-style-type: decimal; }

This works nicely on Firefox, but IE (both IE 6 and IE 7) uses strange 
numbering. It seems to use numbers that reflect the position of the h2 
element as a child of body, so the first h2 is not numbered "1." if there 
is anything before it inside the body, and consecutive h2 elements 
don't get consecutive numbers if there is anything between them.

I'm afraid there is no cure. IE does not support counters, and here its 
internal counter ticks wrongly. Or is it wrong? How are items supposed to 
be numbered by default?

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to