A
A
Alexander2021-06-23 23:22:02
css
Alexander, 2021-06-23 23:22:02

How to correctly set the height of a block without knowing the amount of content of an absolutely positioned child element?

There are 2 global blocks one below the other.
There is an absolute positioned object inside the first one and this collapses its height, raising the second block.
How is it correct (and is it possible) to somehow set the height of the first block without knowing the volume of its content with absolute positioning?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FeST1Val, 2021-06-23
@FeST1Val

For example, using JS, get the height and set it to the parent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question