Forum Moderators: not2easy

Message Too Old, No Replies

Ordered List with right parenthesis?

1) <-- Like that

         

timster

12:25 pm on Aug 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry if this has been covered, but I couldn't find anything about this, yes or no.

Can CSS make ordered lists appear with a parenthesis or other puncuation, instead of periods?

Like so:

1) Point one
   a) Subpoint a

createErrorMsg

11:10 am on Aug 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here are the the options [w3.org] for the list-style-type property, which is what governs the style of list marker used. A number with parenthesis is not one of them, although strictly speaking, all the CSS specs do is dictate the general style (number, roman numeral, letter, etc) and it's up to the browser to decide exactly how that looks. Different browsers on different platforms all display list markers differently.

If you really want that parenthesis effect, you could always use a series of images, tag each list item with an id, and use the list-style-image property on each one to make your own marker.

Another option would be to add a parenthesis -- ) -- to the beginning of the content in those list items, and adjust the padding/margin on the list (best practice is to remove all margin and padding from your lists, then manually set one or the other to your desired setting, anyway) so that it lines up right.

Ideal? Absoluely not, but it would work. ;)

cEM