H
H
hooli-gun2021-06-24 15:05:52
css
hooli-gun, 2021-06-24 15:05:52

How to set block height according to content in grid?

Blocks of the same height, but you need the second one to be not the full height, but the content

. {
  display: grid;
  grid-template-columns: 1fr 140px;
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question