CSS - <ol> Numbering Help
Can't seem to find anything on how to format my <ol> in CSS to start with a certain number. I require a break in the middle of my <ol> for further explanation and I need the next <ol> to start at a certain number such as the following...:
Code: 1. Item1 2. Item2 3. Item3 <p> Paragraph of info </p> 4. Item4 5. item5 6. Item6 Similar TutorialsHi I'm putting together help documentation for an application and I would like the structure of the document to have all headings and sub headings to be dynamically numbered, for example: 1. Main 1.1. Sub1 1.2. Sub2 2. Main 2.1 Sub1 etc I've read about the pseudo class :before, but understand that this isn't supported by Explorer, or else I could use: BODY { counter-reset: chapter; /* Create a chapter counter scope */ font-family:Arial, Helvetica, sans-serif; } H1:before { content: "Chapter " counter(chapter) ". "; counter-increment: chapter; /* Add 1 to chapter */ } H1 { counter-reset: section; /* Set section to 0 */ } H2:before { content: counter(chapter) "." counter(section) " "; counter-increment: section; } Could anyone help with any suggestions as to how I could do this please? Thanks Sophie |