Asked • 03/19/19

How to make a floated div 100% height of its parent?

Here is the HTML:
Test
And here is the CSS: #inner { float: left; height: 100%; }Upon inspection with the Chrome developer tools, the inner div is getting a height of 0px.How can I force it to be 100% of the height of the parent div?

1 Expert Answer

By:

Amir S. answered • 03/22/19

Tutor
5.0 (585)

Professional Web Developer with 17+ years of experience

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.