Y
Y
yDaniil2020-08-19 15:41:05
css
yDaniil, 2020-08-19 15:41:05

How to set responsive block height?

5f3d1ee994896502074022.jpegThere is such a design. The height of the first block is set in pixels. Blocks 2 and 3 have position: fixed and anchor to the bottom + and have bottom: 80px padding. How can I set the height of block 2 so that it automatically expands and shrinks depending on how much free space is left between block 1 and block 3 at different screen resolutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elvin_Fich, 2020-08-19
@Elvin_Fich

Use display: flex; in the block to be edited

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question