You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#105589 Formatting the ordered list?

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Tuesday, 13 October 2020 10:44 BST

ctx2011
Hi Ryan,
I would like to format an ordered list with lower alpha, instead of simply "a. text" in the form of "a) text", that is, changing the period to closing bracket and adding some more space between the alpha "bullet" and the text. How can I achieve this?
Thanks
Krisztina

Ryan
Add the following to your template stylesheet:

ol li {
    list-style: none;
    counter-increment: myIndex;
    margin-left: -10px
}

ol li:before {
    content:counter(myIndex)")";
    margin: 0 10px;
}
See - https://stackoverflow.com/questions/4388632/custom-ordered-list-format

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.