![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What I'm trying to do is something like this: |
|
1. . . . . 2. . . . . 3a . . . . 3b . . . . 3c. . . . . 4. . . . . etc. |
#3
| |||
| |||
|
|
geotso wrote: What I'm trying to do is something like this: 1. . . . . 2. . . . . 3a . . . . 3b . . . . 3c. . . . . 4. . . . . etc. ol li li li ol li li li /ol li !-- etc. -- /ol with styles to suggest numbering. That might be a good starting point. I don't know what the context is, so I can't offer more specifics. Can you help me please? Well, start with the spec, and you can help yourself. ![]() http://www.w3.org/TR/html401/struct/lists.html |
#4
| ||||
| ||||
|
|
Since we are in stylesheet group, I assume you already know how to markup nested ordered list, |
|
Your example is inconsistant, I suppose "." in 3c is mistake? |

|
You need to use counters. Works only on Opera 5+, but is possible to make it degrade somewhat OK, I think. |
|
It might be better hardcode numbering. If it is really meaningful. |
#5
| |||
| |||
|
|
I think you've right again! I was looking for the easy way, but it doesn't matter! |
#6
| |||
| |||
|
|
It might be better hardcode numbering. If it is really meaningful. |
#7
| |||
| |||
|
|
script>var x=7</script ol type="a" script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty /ol |
#8
| |||
| |||
|
|
Evertjan. wrote: script>var x=7</script ol type="a" script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty script>document.write("<li value="+ x-- +">")</script>qwerty /ol You know that this is invalid? |
#9
| |||
| |||
|
|
Johannes Koch wrote on 31 okt 2003 in comp.infosystems.www.authoring.stylesheets: Evertjan. wrote: [invalid HTML code] You know that this is invalid? No Depreciated yes. Invalid, why? |
|
What part is invalid, the qwerty? |
|
Tested under IE6 |
#10
| |||
| |||
|
|
E.g. ol elements cannot contains script elements. What part is invalid, the qwerty? You know how to validate HTML? Hint: <http://validator.w3.org/ |
|
E.g. ol elements cannot contains script elements. |
![]() |
| Thread Tools | |
| Display Modes | |
| |