Auto assign unique classes to sublevels

Auto assign unique classes to sublevels was created by ryandebarros@yahoo.com

Posted 3 years 1 month ago #59998
I realize this is asking a lot, but can more classes be included in future versions for css formatting? Currently there is only one class <"table-of-contents-ck">. If I change css for <li>, then all <li> get changed. Ideally each level would have a unique class name.
<ol class="level1">
<li class="level1a">
<ol class="level2">
<li class="level2a">
<li class="level2b">
<ol class="level3">
<li class="level3a">
<li class="level3b">

Please Log in or Create an account to join the conversation.

Replied by ryandebarros@yahoo.com on topic Auto assign unique classes to sublevels

Posted 3 years 1 month ago #59999
Please disregard the above question. Thank you.

The below css does what I was looking for.
I didn't realize adding ol and li would get to the lower levels.

.table-of-contents-ck {
ol, li {
list-style-type: none;
}
ol li a:hover {
background-color: #000000;
}
ol li ol li a:hover {
background-color: #ffffff;
}
ol li ol li {
list-style-type: circle;
}
}
The following user(s) said Thank You: ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.689 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1170 guests and no members online