Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: html flex components not combining in a flex: 1 0 auto layout

Tags: flex heading pink

Jim:

I have built a landing page with the below HTML.

I have also carefully constructed a bootply, showing exactly how the Pink div expands too far, and does not cover the screen as intended.

https://www.bootply.com/bYlAS71OWw

I have a pink region that should resize to take up the available space filling the browser, but not creating a scrollbar.

It appears that the breadcrumb, and the Heading are not being subtracted from the overall area used.

  • heading is in a col, and is flex,
  • .breadcrumb is flex.

The page creates scroller for the combined height of the the heading and breadcrumb.













HEADING


THIS SHOULD GROW, BUT NOT CREATE A SCROLLBAR









Pander.







The CSS for Flex-grow is:


.flex-grow {
flex: 1 0 auto;
}



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: html flex components not combining in a flex: 1 0 auto layout

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×