ProjectForum News and Tips

« Version 6.2 Released! | Main | Version 6.2.1 »

November 21, 2008

Changing List Styles.

If you have nested numeric lists, ProjectForum follows the default HTML approach of numbering them with decimal numbers, for each level of the list. But, you can change this if you'd like, so that nested levels are 'numbered' using a different scheme.

For example, insert the following bit of CSS into the main stylesheet of a custom theme:


div > ol { list-style-type: decimal; }
div > ol > li > ol { list-style-type: lower-alpha; }
div > ol > li > ol > li > ol { list-style-type: lower-roman; }

The first level will still appear as "1, 2, 3...", but the second level will now be "a, b, c", and the third level will use "i, ii, iii...".

This tip courtesy of Pancho Castano.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341e2e3253ef0105360cec5f970b

Listed below are links to weblogs that reference Changing List Styles.:

Comments

Pancho

Note that "lower-roman" should have a dash between the two words.

Other counter styles available are "upper-alpha", "upper-roman", and "decimal-leading-zero".

Mark Roseman

Thanks - made that change.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment