S
S
s2sk2018-03-05 12:45:44
css
s2sk, 2018-03-05 12:45:44

The block is not stretched from the amount of text?

There is the first block and there is one more
HTML in it:

<div class="block1">
<div class="block2">
Текст. Очень много текста.
</div>
</div>

CSS:
.block1 { height: auto; min-height: 150px; }
.block2 { height: auto; }

It is necessary that the size of the first block depends on the amount of text in the second .... That's just something it doesn't want ....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2018-03-05
@AndrewHaze

In the design that you gave, everything is stretched
https://codepen.io/AndrewHaze/pen/jZoxGg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question