I’m having trouble connecting the inheritance of a component’s height when using pages. In my example, I have a 100 px banner that’s part of app.py and I want page_container to use up all remaining vertical space, so I’m using a flex container. That much is working.
However, if I set the height of the layout of the page1.py to 100%, it doesn’t fill up the orange flex_container. I see that page_container itself is an html.Div() component–is there a way I can style it directly to have {"height": "100%"} ?
Thanks again, @jinnyzor! I’ve added your snippet to /assets/custom.css yet I’m still getting the same output. It set me on the right path though.
Inspecting the html, it looks like there’s an extra div without an id between _pages_content and my flex_container. After some searching, I can control this div by giving flex_container an id and using the immediate child selector > to edit this intermediate div. I’m a CSS novice, so I’m sure there’s a better way–but it seems to be working.
This maintained the page_container’s functionality (I assume _pages_location and _pages_contentare the important parts), but this gives easier freedom to customize those divs.
Not too sure why the dummy_div is there but I didn’t want to touch it haha.
Excuse the formatting, but just thought I should share in case anyone else stumbles on this thread!