ordered list nested counters not working #7032
Unanswered
heather-lau
asked this question in
Help
Replies: 1 comment 3 replies
-
|
This is not really a matter of support, since default You'll want to use CSS counters and MDN helpfully have an example of nesting that you could emulate with Tailwind: <ol class="pl-4 [counter-reset:section]">
<li class="[counter-increment:section] marker:[content:counters(section,'.')]">Yellow</li>
<li class="[counter-increment:section] marker:[content:counters(section,'.')]">Blue
<ol class="pl-4 [counter-reset:section]">
<li class="[counter-increment:section] marker:[content:counters(section,'.')]">Red</li>
<li class="[counter-increment:section] marker:[content:counters(section,'.')]">Green</li>
</ol>
</li>
</ol> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use nested counters but it doesn't support
I excepted 1, 2, 2.1, 2.2, thanks
Beta Was this translation helpful? Give feedback.
All reactions