Ordered list base styles: is there a better way?
OK, this works, but it's ugly. Is there a less ugly way to implement some default chain of styling decimal > letters > romans > decimal… ?
3 Replies
don't think there is another way to do it in css
don't know how your page is generated, but you could set the list-syle-type inline on the <ol> (or with a custom property, or just a class/attribute)
the old school nesting might make this easier to read:
If you have your own icons or images that you prefer and make sense you can set up counters or @counter-style + List-style-type