Working with flex layout has presented a challenge in Firefox and IE11.
I have set up a codepen to demonstrate the issue.
Screenshot
https://i.sstatic.net/i9KlS.png Chrome(left), Firefox(right)
Description
The intended behavior is for the header and footer to always be visible, while the Content area should utilize overflow-y: auto
to scroll its content if necessary. The problem arises in Firefox and Internet Explorer, where the content area grows to match the height of its inner content instead of adhering to the size defined by the flex box specifications. Essentially, adding enough content to the container results in it continuously expanding vertically without triggering scrollbars, eventually causing layout issues.
- Although setting an explicit height for the content container can be a temporary solution, it is not our preferred or recommended resolution.
- Given the flexible nature of our layout, using percentages is not a feasible option either.