+ 1

How to fit child into parent div?

Suppose we have .parent of height 200px and inside .child of height 400px I want to fit .child into parent from .parent don't want child of height 100% https://code.sololearn.com/WemyCVCeOZZf/?ref=app

6th Dec 2020, 1:36 AM
Amar Dahake
6 Réponses
6th Dec 2020, 3:15 AM
ㅤㅤㅤ
+ 2
Width 100% and height equal to parent div 🤔 Else make your que more clear
6th Dec 2020, 2:23 AM
Ayush Kumar
Ayush Kumar - avatar
+ 2
丹ⓨㄩک廾 ok check question again
6th Dec 2020, 2:25 AM
Amar Dahake
+ 2
You can use flex box properties of CSS
6th Dec 2020, 2:31 AM
Ayush Kumar
Ayush Kumar - avatar
6th Dec 2020, 2:35 AM
Amar Dahake
0
Amar Dahake you can set height of child div as 200%
7th Dec 2020, 8:30 AM
maazulhaq
maazulhaq - avatar