jasper1106 — 2009-02-28T07:23:46-05:00 — #1
I've never had to do this before but I have a design that has two divs floated next to each other.
The divs each hold a list.
Left div has a list of items 1-50
The right div also displays items 1-50
Is there a way for the right div list to continue the ordered list sequence, so instead of it also reading 1-50 it reads 51-100?
I've been searching on the net and found a
command for the <ol> however this doesn't seem to work.
erik_j — 2009-02-28T08:17:15-05:00 — #2
That attribute is not an HTML or CSS standard. It is a costum XML attribute for OL tags. I think DocBook is a publishing system buildt in xml that can output html, and it uses that attribute.
If the lists are not dynamical I suggest two lists contaning the item sequence.
retronetro — 2009-02-28T15:30:43-05:00 — #3
c_ankerstjerne — 2009-03-01T06:43:45-05:00 — #4
Semantically, this doesn't make sense. If the list sequence is interrupted, then it is a new list sequence, and can't be a continuation of a previous list. If your contents is really an ordered list (i.e. where the order of the items is important), then you must use only one list. If you are merely using the
<ol> tag to add numbers in front of the list items, then you have an unordered list and must mark it up with the
autisticcuckoo — 2009-03-01T11:29:07-05:00 — #5
As Christian says, if it's one list it must be a single
<ol>. That's the only semantically correct solution. You can use CSS to position the items in two columns.
If it's semantically two separate lists, but you want them to appear as a single, continuous list, you can use CSS to change the starting number of the second list and CSS counters to render the numbering.