W
W
Worddoc2017-07-06 22:04:58
css
Worddoc, 2017-07-06 22:04:58

How to make friends display: table-cell + vertical-align: middle/bottom with position: absolute?

Hello. There is a need to attach the inner block to the outer one, which can change its height 100vh+. When anchored via absolute bottom:0 , when the height changes, the child element stays at the bottom of the old height.
Vertical-align: bottom + display: table-cell will work. But the parent block has position: absolute and these properties don't work together because position: absolute gives the block display: block. How to make friends or how to find the right way? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Negwereth, 2017-07-06
@Negwereth

What's wrong with Flex?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question