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

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



        
5条回答
  •  天涯浪人
    2020-12-02 00:27

    If anyone is going through this same trouble, this is the way I figured it out. I had two divs inside a container and in wanted them to have different columns. So i just made for each div a grid. And i put 1fr row, and then the number of columns i wanted. It worked like a charm.

提交回复
热议问题