Nested Lists ❺
Style Webflow's nested lists within rich text blocks
Last updated
<style>
.hierarchical-list > ol {
counter-reset: level1;
}
.hierarchical-list ol {
padding-left: 1.5em;
}
.hierarchical-list li {
display: block;
list-style: none;
}
.hierarchical-list > ol > li {
counter-increment: level1;
}
.hierarchical-list > ol > li::before {
content: counter(level1) ". ";
font-weight: bold;
}
.hierarchical-list ol > li > ol {
counter-reset: level2;
}
.hierarchical-list ol > li > ol > li {
counter-increment: level2;
}
.hierarchical-list ol > li > ol > li::before {
content: counter(level1) "." counter(level2) ". ";
}
.hierarchical-list ol > li > ol > li > ol {
counter-reset: level3;
}
.hierarchical-list ol > li > ol > li > ol > li {
counter-increment: level3;
}
.hierarchical-list ol > li > ol > li > ol > li::before {
content: counter(level1) "." counter(level2) "." counter(level3) ". ";
}
</style>