![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Say I have the following document structure: <h1>First Part</h1> <h2>First chapter in first part</h2> <h2>Second chapter</h2> <h1>Second Part</h1> <h2>First chapter in second part</h2> <h3>Paragraph X</h3> <h3>Paragraph Y</h3> <h3>Paragraph Z</h3> <h2>Second chapter</h2> Is it possible, perhaps using CSS, to automatically append numbering to these heads, such that the result is: 1 First Part 1.1 First chapter in first part 1.2 Second chapter 2 Second Part 2.1 First chapter in second part 2.1.1 Paragraph X 2.1.2 Paragraph Y 2.1.3 Paragraph Z 2.2 Second chapter It's not that I really want to apply this on a website, but I am curious if it is possible with HTML / CSS. Daan | |||
| Advertisements |
| | #2 | ||
| Daan wrote: > Is it possible, perhaps using CSS, to automatically append numbering > to these heads, such that the result is: > > 1 First Part > 1.1 First chapter in first part > 1.2 Second chapter > It's not that I really want to apply this on a website, but I am > curious if it is possible with HTML / CSS. Possible, but very very very badly supported (Mozilla and IE don't support it, I haven't tested with Opera or Safari). http://www.w3.org/TR/CSS2/syndata.html#counter -- David Dorward http://david.us-lot.org/ Redesign in progress: http://stone.thecoreworlds.net/ Microsoft announces IE is dead (so upgrade): http://minutillo.com/steve/weblog/20...ces-ie-is-dead | |||
| | #3 | ||
| In article <be3m7e$8qp$1$8300dec7@news.demon.co.uk>, dorward@yahoo.com says... > Daan wrote: > > > Is it possible, perhaps using CSS, to automatically append numbering > > to these heads, such that the result is: > > > > 1 First Part > > 1.1 First chapter in first part > > 1.2 Second chapter > > > It's not that I really want to apply this on a website, but I am > > curious if it is possible with HTML / CSS. > > Possible, but very very very badly supported (Mozilla and IE don't support > it, I haven't tested with Opera or Safari). > > http://www.w3.org/TR/CSS2/syndata.html#counter > Opera's pretty good. Mozilla seems unlikely ever to support them (so much for standards compliance): http://bugzilla.mozilla.org/show_bug.cgi?id=3247 Fairly simple example: http://porjes.com/revlist.html | |||
| Featured Websites | ||||
|
![]() |
| Tags: automatic, headers, numbering |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Add Headers for USB 2.0 and Firewire | JP | Central Processing Unit (CPU) and Overclocking | 0 | 06-18-2007 9:25 AM |
| Simple $170.50 a day [automatic] | Jason Fink | Affiliate Programs | 0 | 06-12-2007 8:19 PM |
| Automatic download | chris | Ebay Technical Questions | 1 | 05-31-2007 1:22 PM |
| Automatic rollout for IE7 | colin | Website Reviews And Website Questions | 2 | 08-02-2006 1:44 AM |
| Featured Websites | ||||
|