
CSS - Expand float child DIV height to parent's height?
1 Expert Answer

Marcus R. answered 10/04/21
B.S. Engineering, 14 yrs math tutor experience, patient, honest
To make a child div's height match that of its parent, set the child div's height equal a percentage value, in your case 100%. The percentage value is a reference to the parent.
EXAMPLE:
If you had set the parent div's height to 100px, and the child div's height to 90%, the child div's height would amount to 90px, or 90% of its parent 100px.
ANALOGY:
Dealing with font sizes, where the unit em is a child's reference to its parent.
If a parent div has a font-size: 10px, and a child div has a font-size of 1em, then child's font-size is 100% of the parent div's font-size.
If child div's font-size: 2em, then it would equal 20px, because the parent div's font-size is 10px and 2 times 10px equals 20px.
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Ita Q.
I think you are trying to include a snapshot for your question. Unfortunately, I can not see it. Please check how you set up the values for your "child-left" and "child-right" on your CSS.10/12/20