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

CSS3 flexbox: flexboxes inside flexboxes aren't contained inside their parents

CSS3 flexbox: flexboxes inside flexboxes aren't contained inside their parents

Problem

I am faced with getting a rather complex web app to work in HTML/CSS. I am finding many issues with the Flexbox, which seems like it would solve my problems. I'm trying to understand what I'm doing wrong or what the flexbox limitations are. I am only working in Chrome so that helps.

I keep seeing two issues: - the boxes don't understand how to accommodate heights/widths of children contained inside - child boxes aren't contained by parents. Image of this issue:

Instead of posting code here is a JSFiddle: http://jsfiddle.net/dex3703/ryCQq/ Isn't fully complete but you get the idea I hope. The CSS is combined from three different files.

Thanks!

Problem courtesy of: dex3703

Solution

Figured it out. All containers must be set to display: box (or -webkit-box, etc). If you want a box inside a box, they all must be boxes. Hope this helps someone!

Solution courtesy of: dex3703

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

CSS3 flexbox: flexboxes inside flexboxes aren't contained inside their parents

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×