M
Mike Barnard
Yoohoo, it's me again.
How do you do large ordered lists, if you need to break them up with
headings yet still have it pass validation?
www.thermachek.com/temp/thelawdetail.php
This is an ordered list of 53 items, a breakdown of the 53 articles in
a UK law. The list is continious but broken by part headings. On
validation I get an error on each "Part1" "Part2" etc item;
Line 285, Column 3: document type does not allow element "H4" here;
assuming missing "LI" start-tag.
<h4>
I know what is wrong, I need to finish a list, do the heading then
start a new list. So I need the new list to start an a number other
than 1, where the previous list finished. The "start" property of the
<ol> has been deprecieated but no matching CSS has been created.
I have found a bodge for this at...
http://tb-one.se/2007/12/29/ol-start-number/
.... but it's a bit long winded. What would you do?
Leave it as it is? No validation but it works. (Must test in other
browsers than FF! Have not done so yet. Must get Safari to load too.)
Use the deprecieated 'start' property? No validation but *may* work in
more browsers?
Use the hack above? I will try it, but do you know of any problems
with it?
I look forward to having my eyes opened even wider! Happy Easter if
Easter is your thing.
How do you do large ordered lists, if you need to break them up with
headings yet still have it pass validation?
www.thermachek.com/temp/thelawdetail.php
This is an ordered list of 53 items, a breakdown of the 53 articles in
a UK law. The list is continious but broken by part headings. On
validation I get an error on each "Part1" "Part2" etc item;
Line 285, Column 3: document type does not allow element "H4" here;
assuming missing "LI" start-tag.
<h4>
I know what is wrong, I need to finish a list, do the heading then
start a new list. So I need the new list to start an a number other
than 1, where the previous list finished. The "start" property of the
<ol> has been deprecieated but no matching CSS has been created.
I have found a bodge for this at...
http://tb-one.se/2007/12/29/ol-start-number/
.... but it's a bit long winded. What would you do?
Leave it as it is? No validation but it works. (Must test in other
browsers than FF! Have not done so yet. Must get Safari to load too.)
Use the deprecieated 'start' property? No validation but *may* work in
more browsers?
Use the hack above? I will try it, but do you know of any problems
with it?
I look forward to having my eyes opened even wider! Happy Easter if
Easter is your thing.