Answer the question
In order to leave comments, you need to log in
Layout tiles using the flex property. How to make three columns?
I decided to replace the masonry and isotop plugins with a clean layout using flex. I took a ready-made example from here codepen.io/dudleystorey/pen/eAqzk. But here's the problem - the blocks in my layout line up to two or three columns, depending on the resolution. Explain what this is connected with and how to arrange the blocks in three columns?
https://jsfiddle.net/gwu4r33c/embedded/result/
Answer the question
In order to leave comments, you need to log in
Flexplorer
Read about flex and its parameters here or here for example. There are examples there, I think you will find what you need.
In the example, in general, some kind of tin is going on, at least in the fox ...
Make a normal example and you can think about it.
UPD:
Yep, found the problem:
height: 100vw;
vw is the viewport width, you have it applied to the height. You need vh, and everything will be fine
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question