justify-content: space-between failing to align elements as expected

The problem is a conflict with the Bootstrap stylesheet, which places pseudo-elements in your flex container. This causes space-between to calculate multiple flex items as opposed to just two. Here’s your flex container: The logo and nav menu are aligned with justify-content: space-between, but are not positioned at opposite edges. The alignment looks more like … Read more

Horizontal masonry layout with flexbox CSS only [duplicate]

Here is one option using wrapped columns, but it requires a fixed height. .card-container { display: flex; flex-flow: column wrap; height:100vh; align-items: center; background-color: #888; } A better option for CSS masonry layout is to use columns, an example is on this blog post http://w3bits.com/css-masonry/ .masonry { /* Masonry container */ -moz-column-count: 4; -webkit-column-count: 4; … Read more