Page 1 of 1
Does this work in IE7?
Posted: Mon Nov 06, 2006 6:38 pm
by Ambush Commander
Code: Select all
#toc ol ol { list-style-type:lower-alpha; }
#toc ol > li:before {content:counter(h2) ". "; counter-increment:h2; margin-right:1em;}
#toc > #innertoc ol {counter-reset:h2; list-style-type:none;}
#toc ol ol > li:before {content:counter(h2) "." counter(h3) ". "; margin-right:1em; counter-increment:h3;}
#toc > #innertoc ol ol {counter-reset:h3; list-style-type:none;}
For IE6 and under, who don't support 'content', I fall back on a reasonably good looking numbers to alphabeticals scheme. For Firefox and Opera, I do a nice 1, 1.1, 1.2, 1.3 numbering scheme, overloading the previous declaration with direct child selectors, which IE6 does not support. But I don't have a copy of IE7 on hand, and I don't know: does this still work in IE7 too?
Related note: how would I install IE7 without nuking IE6?
Posted: Wed Nov 08, 2006 12:56 am
by JAB Creations
If you post a url or a full page of code I'll be glad to test it out for you.

Posted: Wed Nov 08, 2006 3:33 am
by Maugrim_The_Reaper
I don't have IE7 just yet...
On your related note, I did some checking. There are a few websites offering standalone versions of IE6 down to IE5. Presumably once IE6 is nuked by an upcoming Windows Update, you can still download and install the standalone versions of IE. These are *not* Microsoft supported - purely created by some inventive folk with too much time on their hands...
http://en.wikipedia.org/wiki/Internet_E ... t_Explorer
http://tredosoft.com/Multiple_IE
Posted: Wed Nov 08, 2006 7:15 am
by Ambush Commander
http://hp.jpsband.org/comparison.html
It's a bit of cool JavaScript auto-Table of Contents generation.
Posted: Wed Nov 08, 2006 8:34 am
by nickvd
No, Unfortunately they didn't add the content (and probably the :after pseudo tag)...
Posted: Wed Nov 08, 2006 9:38 am
by matthijs
Posted: Wed Nov 08, 2006 10:07 am
by nickvd
Has anyone been able to install IE7 on linux? With it being pushed out to all sp2 clients next month, the usage stats should start to jump dramatically so testing with it should be a priority...
Posted: Wed Nov 08, 2006 10:40 am
by Ambush Commander
Ah, so content still doesn't work in IE7. Does the fallback alphabetic list item style work? (Bites bullet and installs IE7)
Posted: Wed Nov 08, 2006 11:09 am
by nickvd
I posted a screenshot
here It fails completely, no bullets whatsoever (i smell an ie only stylesheet coming)
... It looks great in firefox though!

Posted: Wed Nov 08, 2006 11:11 am
by Ambush Commander
Darn it!

Well, at least it's still usable.