I’m really struggling with the html and css of Dash. I have a good sense of how Dash works overall and I can make interactive charts with plenty of callbacks.
What’s really giving me trouble is dealing with styling and structuring the divs. I struggled to figure out how to put two different charts side by side. Items from dropdown menus are messing up the layout of the whole dashboard.
In my research I can’t seem to find any good tutorials on how to properly utilizes the html/css capabilities in order to create beautiful and ergonomically designed dashboards. Plotly’s own docs barely address this.
@Emil is right. I use bootstrap layout (dbc.Col, dbc.Row) all the time because I think it’s the best way to make layouts. However, I have run into hard-to-debug troubles numerous times - mainly when using dash_table.
If I use dash_table in combination with bootstrap layout, I always include a custom css with
Then I found https://grid.layoutit.com/ . which is extremely useful for visually laying out your app.
Once you are done you can just copy the css code on the right.
However depending on how you construct your project, you do have to translate the html code into dash friendly html.(tag) format.
I found the hardest part about getting started with Dash was the layout. Took a day and really understood how to manage the layout with CSS (grid and flex) and it has become much much easier… specifically grid.