Flexbox and Vertical Scroll in a Full Height App using Newer Flexbox API with HTML



The flex property is a shorthand for the flex-grow, flex-shrink, and flex-basis properties. The flex property sets the flexible length on flexible items.

For example −

#container article {
   -webkit-flex: 1 1 auto;
   overflow-y: auto;
   height: 0px; /*here the height is set to 0px*/
}

If you want a min-height, the use height: 100px; that it is exactly the same as − min-height: 100px;

#container article {
   -webkit-flex: 1 1 auto;
   overflow-y: auto;
   height: 100px; /*here the height is set to 100px*/
}
Updated on: 2020-06-24T14:16:04+05:30

550 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements