H
H
habrdima2018-09-10 14:23:51
css
habrdima, 2018-09-10 14:23:51

How to bind the height of child and parent?

If you change the height of the child, then the height of the parent will naturally increase, is it possible without breaking this possibility by changing the height of the parent to change the height of the child without js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Pershin, 2018-09-10
@habrdima

Yes using flexbox
Using 100% height on the element inside the parent. The parent needs to set some height

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question