Nested Lists ❺
Style Webflow's nested lists within rich text blocks
All of the code given here will be pasted directly into a <style>
block within an Embed on the page containing your rich text block.
This allows you to customize it to your specific needs, and for it to work while you're in the designer.
Ordered List Styling
Basic Styling 1. A. a.
Suppose you want a basic ordered list, where the first level is decimal, the second is uppercased letters and the third is lowercase letters.
This code will perform this to all ordered lists on your page.
Technical Styling
Technical styling is a bit different, it's a sequence of numbers like 2.1.14
that indicidates a specific level of your list. We can achieve that in pure CSS as well using CSS counters.
Give your rich text element the class hierarchical-list
. This can be a global class, an in addition to other classes on your list.
My code here;
Will apply technical numbering to all ordered lists within your rich text element
Will restart for each one
Handles 3 levels only- you can make it deeper by continuing the same pattern
Doesn’t apply any level-specific styling, but you can
Works in the designer at design time, if the
<style>
chunk is in an embed rather than the before-/head custom code area.
Last updated