K
K
keche2017-08-02 17:36:11
css
keche, 2017-08-02 17:36:11

Is it possible and how to capture the height of the parent block?

Is it even possible and how to automatically capture the entire height of the parent block?
I've attached a screenshot showing the design.

<div class="container">
<div class="child">11</div>
</div>

The entire width is captured (shown by the red highlight), but the height is not.
We need to capture the height of the container block to the child block.
bab24149e32a4bffb36ecb6ba4ee6869.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-08-02
@webinar

What height:100%;'s not to like?
https://jsfiddle.net/mzpc5th7/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question