Click to See Complete Forum and Search --> : automatic list numbering


PunkSktBrdr01
11-25-2003, 05:33 PM
I'm trying to make an automatically numbered list, which should look like this:

1)
2)
3)

I don't know why it isn't working, though. Here's the CSS:


.process {
counter-reset: processNum;
}
.process li {
display: list-item;
list-style: none;
}
.process li:before {
display: marker;
content: counter(processNum, decimal);
counter-increment: processNum;
marker-offset: 2em;
width: auto;
text-align: right;
}


I've never done any styling for lists, so this is a bit confusing. Thanks for any help! :)

DaveSW
11-26-2003, 06:31 AM
why not use

<ol>
<li>item1</li>
<li>item2</li>
</ol>

besides which using list-style: none removes your numbers/bullets

Robert Wellock
11-27-2003, 12:27 PM
Are you using the shoddy Micro$oft Explorer?

PunkSktBrdr01
11-28-2003, 11:15 AM
I'm using Firebird. My customer wants the list to be styled differently (with the ")" after the number), so I need a way to automatically add that. I thought this was the way to do it, but it's not working. Please help. :)

ray326
11-28-2003, 12:13 PM
At this point I don't believe most browsers understand the CSS you are trying to us. That basically means you'll have to generate the desired format on the server side.

PunkSktBrdr01
11-28-2003, 12:55 PM
Well, I suppose I could just do it by hand, but that sorta goes against the "separating presentation from content" philosophy. Oh well.

ray326
11-28-2003, 10:07 PM
Originally posted by PunkSktBrdr01
Well, I suppose I could just do it by hand, but that sorta goes against the "separating presentation from content" philosophy. Oh well.
Quite true. The world ain't perfect. But note how little of it supports what you're trying to do:
http://www.westciv.com/style_master/academy/browser_support/generated_content.html