Computer Webmaster Gaming Console Graphics Forum

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.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > HTML
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 2:07 PM   #1
Daan
 
Daan's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Automatic numbering of headers

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


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 07-01-2007, 2:07 PM   #2
David Dorward
 
David Dorward's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Automatic numbering of headers

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
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 2:07 PM   #3
Jacqui or (maybe) Pete
 
Jacqui or (maybe) Pete's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Automatic numbering of headers

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

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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




All times are GMT +1. The time now is 6:13 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98