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:

screenshot of problem

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!

有帮助吗?

解决方案

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!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top