Twitter Bootstrap Containers
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 one big container for the whole page.
Example1 (Closed Containers)
Example 2 (1 large container)
Any help appreciated, just dont want to get into bad habits early on
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”.
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.
- Database Administration Tutorials
- Programming Tutorials & IT News
- Linux & DevOps World
- Ebook Reviews
- PES Matches, Skills & News