Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Textile question: Looking for the easiest way to set the OL counter
Hi! I’ve been poring over the manuals for Textile classic and Textile 2.2, and I can’t find an easy way to do this. I have two ordered lists separated by a paragraph, like this:
#(#iAmList1) item 1
# item 2
# item 3
paragraph text
#(#iAmList2) item 4
# item 5
# item 6
Is there any way to set the counter of the second list so that it continues the numbering where the first list left off? I’d prefer a solution that uses inline styles in this case so that I don’t have the client editing the stylesheet when something like this is needed.
I’ve tried variations using counter-increment
and counter-reset
declarations, but so far nothing has worked:
#(#iAmList2){counter-reset: item 3} item 4
# item 5
# item 6
Thank you!
Last edited by johnstephens (2011-01-18 16:58:25)
Offline
#2 2011-01-18 17:47:39
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: Textile question: Looking for the easiest way to set the OL counter
You need a CSS-declaration with xy:before { content: counter() ". "; etc. }
.
Offline
Re: Textile question: Looking for the easiest way to set the OL counter
Thanks, GugUser. That’s what I expected. Since there’s no way to append the :before
pseudo element using inline styles, it looks like the easiest way to get continuity between the lists is to use hand-numbered paragraphs instead of using the ordered list element.
Offline