Auto assign unique classes to sublevels

More
3 years 7 months ago #59998 by ryandebarros@yahoo.com
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.

More
3 years 7 months ago #59999 by ryandebarros@yahoo.com
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.549 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 684 guests and one member online