B
B
Bestolkovy2016-11-07 05:51:35
css
Bestolkovy, 2016-11-07 05:51:35

How to set the height of child elements to 50%?

Good afternoon!
How to do this with flexbox?

<div class="wrapper"><!-- Высота этого контейнера неизвестна -->
    <div class="column"><!-- Этот, должен быть 100% высоты своего ↑ родителя -->
        <div class="cell"></div><!-- 50% высоты -->
        <div class="cell"></div><!-- 50% высоты -->
    </div>
</div>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Edward, 2016-11-07
@Bestolkovy

https://jsfiddle.net/edalis/u0f8zrc2/

A
A person from Kazakhstan, 2016-11-07
@LenovoId

How is that done?
And if initially wrapper is empty?
codepen.io/Geyan/pen/PbwBOZ?editors=0100 - right?

A
Alexander, 2016-11-07
@Alexandr220

height:50ch
not?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question