How to layout mis-matched stacked content with flexbox

时间:2016-10-20 19:22:21

标签: css flexbox

Right now we have this layout, and we're using some JS math to make it work - i'm thinking it would be really cool if we could kill the JS and just use flexbox. I've been working through and having some issues figuring out how this would work. Any suggestions?

Landing Page

1 个答案:

答案 0 :(得分:0)

看起来元素的高度不匹配,但宽度不均匀。您可以将元素放在Flex容器中并应用属性:

flex-direction: column;
flex-wrap: wrap;

您可能需要修改问题,以解决您遇到问题的具体问题。