john_galt
KPCKevin Powell - Community
•Created by john_galt on 7/8/2023 in #front-end
Why second and third flex items doesn't take the remaining height space of container
@emmanuelyolou thank you for proposing a solution! Just one wrapper, and direction column is what I needed 🤩
Don't get me wrong I'm grateful to you for your time, but if you allow me, I would correct your proposed solution a bit(after reading the spec for 4 hours got an insight) :
8 replies
KPCKevin Powell - Community
•Created by john_galt on 7/8/2023 in #front-end
Why second and third flex items doesn't take the remaining height space of container
@Chris Got the answer, why it is the way it is. 4 hours reading the spec, and finally got it 😄
The spec says
align-content: stretch -- .... the free-space is split equally between all of the lines, increasing their cross size.
And the cross size is In a multi-line flex container (even one with only a single line), the cross size of each line is the minimum size necessary to contain the flex items on the line (after alignment due to align-self), and the lines are aligned within the flex container with the align-content property
8 replies
KPCKevin Powell - Community
•Created by john_galt on 4/26/2023 in #front-end
Why div around flex-container breaks overflow scrolling?
Thanks, Kevin for the great explanation!
4 replies