Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬Register for the Oct 27 webinar.

Nest app in Div with background colour?

Hi all,

probably a rather easy question but how can I nest my Dash app (with padding) inside of a html div with a background colour, without it being transparent so that it looks approximately like this:

When I intend to style my outer-most div (the ‘background div’), the color transpires through all the other elements too. How can I stop it from being transparent?

Thank you in advance!
Andreas

You must change the innermost components background color individually or via a css class. As you mentioned, they are “transparent” with respect to their parent bg color.