Bootstrap Grid - Square Tiles with same horizontal/vertical gap

前端 未结 2 1366
醉话见心
醉话见心 2020-12-19 12:33

I\'m trying to create a Grid of Tiles with Bootstrap with the following properties:

  • all tiles should be squares
  • horizontal and vertical gaps should be
2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-19 13:30

    try below code

    body{ background: lightblue; } .container{ margin-top: 20px; } .box{ height: 100px; background: #fff; border-radius: 5px; margin-bottom: 10px; max-width: 100px; }

提交回复
热议问题