V
V
viktorulyushev2018-02-07 12:37:00
css
viktorulyushev, 2018-02-07 12:37:00

Because one block is high, others are pushed down?

joxi.ru/KAgeEooTgBRyym
The problem is, due to the fact that one of the blocks is high, the rest are aligned depending on the height of the largest block, is it possible to somehow make the blocks occupy the entire space?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2018-02-07
@Stalker_RED

Yes. In the simplest case

display: table-cell;
min-height: 100%;
https://jsfiddle.net/2q1xcdyL/
There are many ways, and which one to choose depends on the requirements for how it should behave on different screen sizes.
And yes, you should be ashamed for the fact that you are engaged in layout, but you cannot insert a screenshot.

E
evgennikolaevich, 2018-02-07
@evgennikolaevich

Try flexbox, it's already 2018!

display: flex;
align-items: flex-start;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question