开发者

Fluid Layouts & multi-column layouts?

开发者 https://www.devze.com 2023-04-11 23:00 出处:网络
Let\'s say I have 40 divs that I want to divide into columns. And that I want the number of divs in each column to scale based on the vi开发者_开发知识库ewport height.

Let's say I have 40 divs that I want to divide into columns. And that I want the number of divs in each column to scale based on the vi开发者_开发知识库ewport height.

So, for instance, if the viewport height is 1000px, there could be 10 divs per column. And if it were resized to 500px tall, there would be 5 divs per column.

Is this possible to do entirely with CSS (and @media queries)?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号