- 1

How to set height of main-container div with response to nested div elements?

I have made two div elements placed next to each other with in a main-container div. Height of both div is set to auto. How can i set height of main-container div so it gets adjust as per the height of both div elements inside it and footer element after it is placed at bottom of page. Please Help https://code.sololearn.com/W9DRJcX2Afr0/?ref=app

20th Feb 2020, 6:19 AM
Priya gupta
Priya gupta - avatar
2 odpowiedzi
- 1
If i am adding height or minimum height to main-container, the footer is still getting placed below div2 on right side in bigger screens (0.5 size in codepen)☹ https://codepen.io/gpriya155/pen/yLNOQpL
20th Feb 2020, 7:09 AM
Priya gupta
Priya gupta - avatar