Streaming live at 10am (PST)

How to define CSS descendant selectors in Webflow

Hello,

I would like to apply a specific style to a class if it is inside a specific parent class (https://www.w3schools.com/cssref/sel_element_element.asp). See below example for which I would like to set CSS for .my-ul-class .my-div-class ul . Is this possible with Webflow?

<div class="my-div-class">
<ul class="my-ul-class">
...
</ul>
</div>

Thanks!

You can’t natively — you can always add CSS custom code — but you can hack it visually:

2 Likes