travelI'm on Holidays until the 22th august.

The questions posted during this period will receive no answer, so please be patient and wait before posting in the forum. Thank you

New registrations are suspended during this period

Je suis en vacances jusqu'au 22 aout.

Je ne répondrai à aucune question postée durant cette période. Merci d'attendre mon retour. Merci

Les inscriptions sur le site sont suspendues pendant cette période

 

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 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 to join the conversation.

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

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 320 guests and no members online