Twitter Bootstrap Containers

前端 未结 2 915
不思量自难忘°
不思量自难忘° 2021-01-07 21:49

Ive been using bootstrap for a few months and am looking to clarify something as part of best practices.

My question is do I create a container for each row or just

相关标签:
2条回答
  • 2021-01-07 22:05

    Multiple rows can logically be part of the same grid, like rows in a table. The .container represents one grid. So Example 2 would be the way to go.

    0 讨论(0)
  • 2021-01-07 22:15

    I would recommend the second example. In the first you have duplicate code wich makes no real sense. Always think about the principle "Don't repeat yourself".

    0 讨论(0)
提交回复
热议问题