Answer the question
In order to leave comments, you need to log in
When using flexbox, how can I make it so that only one element grows in size when showing hidden content?
The site page has the following code:
<div>
<section>1</section>
<section>2</section>
<section>3</section>
<section>4</section>
</div>
Answer the question
In order to leave comments, you need to log in
You can not stretch the blocks in height. Then
#allt {
/*...*/
align-items: flex-start; /*По умолчанию stretch*/
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question