E
E
Eugene Chefranov2018-04-04 22:09:44
Layout
Eugene Chefranov, 2018-04-04 22:09:44

How to do this on flex?

Tell me how to correctly lay out such a block.
5ac52251828b7882046942.png
There is a container with a minimum height of 100vh, and there are two blocks in it. The top block is a type of header whose height can change, and the second block also has a dynamic height. It is necessary that the second block occupies the entire remaining height and aligns the elements vertically in the center.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
�
ⓒⓢⓢ, 2018-04-04
@Chefranov

https://jsfiddle.net/bd68az1v/

A
Alexander, 2018-04-04
@pi4yyy

Bottom align-items : center, justify-content: center

V
vitaly_74, 2018-04-05
@vitaly_74

I won’t write a solution, I’ll just leave a link, and you are already looking at what you need html5.by/blog/flexbox is much more interesting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question