M
M
macstuff2019-06-30 17:24:51
HTML
macstuff, 2019-06-30 17:24:51

How to stretch a block in height to adjacent elements?

Hey!
How to stretch a block in height to neighboring elements?
5d18c8fa049e6256099627.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Baskakov, 2019-06-30
@dmitrybascacov

The parent block has display:flex
The desired child element has hight:100%

H
html-css, 2019-06-30
@html-css

layout with grids
by default all blocks will line up at the same height

.container{display:grid; grid-template-columns:4 1fr; grid-column-gap:20px;}
а в контейнере 4 itemЫ

S
Shohruh Shaimardonov, 2019-06-30
@joeberetta

If flex then write to the parentalign-items: stretch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question