Auto assign unique classes to sublevels
- ryandebarros@yahoo.com
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
3 years 8 months ago #59998
by ryandebarros@yahoo.com
Auto assign unique classes to sublevels was created 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">
<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.
- ryandebarros@yahoo.com
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
3 years 8 months ago #59999
by ryandebarros@yahoo.com
Replied by ryandebarros@yahoo.com on topic Auto assign unique classes to sublevels
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 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.209 seconds