Margin automatically added to list inside rich text

Hi !

If I add a list inside a rich text, a margin is automatically added before the list. IMO it’s not a good thing because my list is related to the paragraph before. Any idea to avoid that margin ?

Thanks by advance !
Clem


1 Like

Just add this code in Bricks → Settings → Custom Code → Custom CSS:

p {
margin: 0;
}

Thanks a lot ! I added that code :

p:has(+ ul) {margin-bottom: 0;}
ul {margin-top: 0;}

Note that the has selector is not yet well supported by browsers.

1 Like