CSS stacking div with variable height on two columns

后端 未结 5 2548
抹茶落季
抹茶落季 2021-02-20 09:05

So I\'m working the profile page of a user on my website. And I\'m having a little problem with the CSS.

My problem is the following: I have four div boxes with a fixed

5条回答
  •  忘了有多久
    2021-02-20 09:37

    You can put the boxes in columns like so. This is a very basic grid system, but it shows the basic idea: you're stacking your boxes inside of wrapper divs which form columns.

    If you'll be repeating this pattern all over your site, you may want to use a more formalized grid system. Many examples can be found by simply searching "css grid system".

提交回复
热议问题