Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Auto assign unique classes to sublevels

Auto assign unique classes to sublevels 06 Mar 2021 01:02 #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.

Auto assign unique classes to sublevels 06 Mar 2021 01:18 #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.

  • Page:
  • 1
Time to create page: 0.180 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 224 guests and one member online