Can I have a varying number of columns per row in a CSS grid?

前端 未结 5 1696
广开言路
广开言路 2020-12-01 23:31



        
5条回答
  •  囚心锁ツ
    2020-12-02 00:23

    You can solve this with having nested grids. Grid-1 (covers complete area) Grid-2 (covers row-1) Grid-3 (covers row-2)

    By having this setting you can shorten the width of row-2.

提交回复
热议问题