OL 1.2 etc?

M

markrush

Hi there. I have a nested ordered list. currently when i enter my info
it displays:

1. text
1. text
2. text
3. text
1. text
2. text

how do i change this to:

1. text
1.1. text
1.2. text
2. text
2.1. text
2.2. text


???
 
A

Andy Dingley

how do i change this to:

1. text
1.1. text
1.2. text
2. text
2.1. text
2.2. text

Use nested <ol>, use CSS to turn off the numbering and insert your own
with the content management system (hand, automatic or XSLT). Although
CSS has useful features for doing such numbering automatically, browser
support is just too poor for them to be usable.
 
J

Jukka K. Korpela

Andy Dingley said:
Use nested <ol>, use CSS to turn off the numbering and insert your
own with the content management system (hand, automatic or XSLT).

I'd rather use <ul>. The reason is that when CSS is turned off (or not
supported at all by the user agent), the bullets are more tolerable
than numbers or letters. If you have a number like "1.2" inserted at
the start of a list item content, you _don't_ want browsers to display
"2. 1.2" when they use their default rendering; "* 1.2" isn't good
either, but better.
 
A

Andy Dingley

I'd rather use <ul>.

By bizarre coincidence, I first wrote <ul>

Then I changed it, because I couldn't be bothered having the inevitable
argument with Jukka over its semantic mis-use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top