Asked • 03/19/19

How to make a div 100% height of the browser window?

I have a layout with two columns - a left `div` and a right `div`.The right `div` has a grey `background-color`, and I need it to expand vertically depending on the height of the user's browser window. Right now the `background-color` ends at the last piece of content in that `div`. I've tried `height:100%`, `min-height:100%;` etc.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.