|
Posted by Markus Wichmann on 08/17/06 20:00
Mark Parnell schrieb:
> Deciding to do something for the good of humanity, Markus Wichmann
> <nullplan@gmx.net> declared in alt.html:
>
>> If I use subordinating lists, each ordered list counts for itself (which
>> is good), but I'd like to prepend the other numbers.
>
> This would be possible using CSS counters, but browser support is very
> poor.
>
> http://www.w3.org/TR/CSS21/generate.html#counters
>
> Other than that you would probably have to use some sort of
> pre-processing to generate the numbers.
>
>> The other thing I'd like to do, is to remove the sign completely in
>> unordered lists.
>
> ul {list-style-type: none;}
>
Well, that one with ul worked, thanks for that. And I finally got it
right with the counters. I used the following:
ol {counter-reset: item}
ol li { display:block }
ol li:before {content: counters(item,".") " ";
counter-increment: item;
}
ul li:before { content: normal;
counter-increment: none;
}
This works fine with my list. It has multiple nested ordered lists, but
there are a few unordered list, which should be displayed with text and
markup (hyperlinks, e.g.) only.
Thanks again and
cu,
nullplan
--
To err is human. To forgive is divine.
To forget is also human...
[Back to original message]
|