V
V
vasa6662017-01-22 11:38:09
css
vasa666, 2017-01-22 11:38:09

How to stretch on the transverse axis on FlexBox?

I have the layout shown in the picture, I can’t stretch the first block to the width,
how to do this on flexbox? For example, in the " Table " tag, there are attributes such as " colspan " " rowspan " that allow you to drag the table both in width and in height. And flexbox has only " flex-grow " which pulls the block only in width .. but what about the height?))
The task is not to select the first block separately in a div, but to make a similar scheme as in the picture, exactly according to the means for the given HTML code .
- Block width (from 2 to 7) 50% of the total container
- Block height is essentially floating (depending on content filling)
codepen.io/vasa666/pen/jymGMV
9640f42d80374e26b9b5a5bd32ef016a.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentin Fetisov, 2017-01-23
@valentikus

Basically { align-items: stretch; } this property is responsible for stretching the block by filling, different options are possible, try experimenting with align-items by setting different values ​​for it.

I
iBird Rose, 2017-08-01
@Herr_Shmulke

and what do you want? execution of your script does not slow down anything. those. It works until the RAM fails. and because of this speed of execution - it is clogged very quickly.
set a timeout of 1 second. then it won't slow down.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question