align-content not working on flex items

The fact that align-content “works” when the primary flex container is switched to display: block is simply a browser bug. It shifts the flex items to the bottom, as desired, but only in Firefox. In Chrome it doesn’t do anything, which is the correct behavior (per the spec). And in IE11 it shifts the items … Read more

Bootstrap 4 masonry layout utilizing flexbox grid

This is pretty much doable with standard Bootstrap 4 classes. There is even a whole section in the documentation about the Card columns feature. From the docs: Cards can be organized into Masonry-like columns with just CSS by wrapping them in .card-columns. Cards are built with CSS column properties instead of flexbox for easier alignment. … Read more

Why is flex-fill not creating equal width in bootstrap?

Bootstrap’s flex-fill is unfortunately a very bad class. It sets the following flex CSS properties: flex: 1 1 auto; This is equivalent to: flex-grow: 1; flex-shrink: 1; flex-basis: auto; The grow and shrink values are fine. This is what makes the boxes share the available space evenly. The auto flex-basis value however is not good: … Read more

Setting a max-width for flex items?

I would apply a width or min-width to the .child items (or left/right padding that creates the distance between them) and margin-left: auto to the last item, which moves it right, independently from the others: https://jsfiddle.net/6vwny6bz/2/ .container { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-pack: justify; -ms-flex-pack: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)