← Tailwind CSS & Bootstrap learning pathTailwind CSS & Bootstrap · Module 2 of 10
Bootstrap grid and layout
Build responsive layouts with containers, rows and columns.
📖 Key ideas
- .container wraps content; .row holds columns.
- The grid has 12 columns: .col-6 is half width.
- Breakpoints: sm, md, lg, xl, xxl, e.g. .col-md-4.
- Gutters control spacing: .g-3.
- Utilities: .d-flex, .justify-content-between, .mt-3.
💡 Real-life example: The 12-column grid is a chocolate bar with 12 pieces: split it as 6+6, 4+4+4 or 3+9.
.containerCentred, padded wrapper
.rowHorizontal group of columns
.col-md-4One third width from md up
BreakpointScreen width where layout changes