✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

How to fill the height of the screen with the main layout Div

If my dashboard is shorter than the height of the screen, and I have a non-white background, the area between my bottom-most component and the bottom of the window is white. How can I have my Div automatically fill in the rest of the screen with my background color?

BTW I have set my margins to 0 in CSS, but this only takes care of the top and sides.

EDIT: This was solved by adding style={‘height’:‘100vh’} to the main layout Div.

Thanks! this was driving me crazy. I thought it had something to do with the footer