fuper
08-18-2006, 03:50 PM
I'm working through the CSS tutorials at westciv.com and trying things out, but I can't get h[n]:before {content: counter} to generate numbers. (Haven't tried :after, but I assume it's the same.) I've copied and pasted the code (and even compared examples from different sources) without luck: h1:before {content: counter(chapter);
counter-increment: chapter 1
}I can get strings working without difficulty, such as :before {content"some string"}, but my counter generates nothing. I even tried indicating display:marker (though I don't yet know what that means) and display:block, in case that had something to do with it. I'm testing on a Mac with Safari, Firefox, and IE.
counter-increment: chapter 1
}I can get strings working without difficulty, such as :before {content"some string"}, but my counter generates nothing. I even tried indicating display:marker (though I don't yet know what that means) and display:block, in case that had something to do with it. I'm testing on a Mac with Safari, Firefox, and IE.