See fiddle .
I have a flexible layout with flex-direction:column
inside the container with height: 100vh
. My flex layout container (blue) should have the full height ( height:100%
) of the main container.
Given this context, now I want to avoid overflowing the flexible elements on the right when the viewport height is too small to contain all the elements.
So, I want the whole viewport to be blue and all of my red elements inside blue to remain in the column.
I tried to install min-height:100vh
, it works in order to allow all my elements in a column, but awkwardly my blue container of flexible layouts does not have a 100% stack size.
I can not change the structure of html.
source
share