One of three columns
One of three columns
One of three columns
One of three columns
1 of 2
2 of 2
2 of 2
1 of 3
2 of 3
3 of 3
3 of 3
1 of 3
2 of 3 (wider)
3 of 3
1 of 3
2 of 3 (wider)
3 of 3
1 of 3
Variable width content
3 of 3
1 of 3
Variable width content
3 of 3
.col-md-8
.col-6 .col-md-4
.col-6 .col-md-4
.col-6 .col-md-4
.col-6 .col-md-4
.col-6
.col-6
Column
Column
Column
Column
Level 1: .col-sm-3
Level 2: .col-8 .col-sm-6
Level 2: .col-4 .col-sm-6
.col-9
.col-4
Since 9 + 4 = 13 > 12, this 4-column-wide div gets wrapped onto a new line as one contiguous unit.
.col-6
Subsequent columns continue along the new line.
First in DOM, no order applied
Second in DOM, with a larger order
Third in DOM, with an order of 1
.col-md-4
.col-md-4 .offset-md-4
.col-md-3 .offset-md-3
.col-md-3 .offset-md-3
.col-md-6 .offset-md-3
.col-6 .col-sm-3
.col-6 .col-sm-3
.col-6 .col-sm-3
.col-6 .col-sm-3
.col-md-4
.col-md-4 .ms-auto
.col-md-3 .ms-md-auto
.col-md-3 .ms-md-auto
.col-auto .me-auto
.col-auto
.col-3: width of 25%
.col-sm-9: width of 75% above sm breakpoint
...

A paragraph of placeholder text. We're using it here to show the use of the clearfix class. We're adding quite a few meaningless phrases here to demonstrate how the columns interact here with the floated image.

As you can see the paragraphs gracefully wrap around the floated image. Now imagine how this would look with some actual content in here, rather than just this boring placeholder text that goes on and on, but actually conveys no tangible information at. It simply takes up space and should not really be read.

And yet, here you are, still persevering in reading this placeholder text, hoping for some more insights, or some hidden easter egg of content. A joke, perhaps. Unfortunately, there's none of that here.


Custom column padding
Custom column padding
Custom column padding
Custom column padding
Custom column padding
Custom column padding
Custom column padding
Custom column padding
Custom column padding
Custom column padding
Row column
Row column
Row column
Row column
Row column
Row column
Row column
Row column
Row column
Row column
.col-sm-6 .col-md-8
.col-6 .col-md-4

Centered element
Grid item 1
Grid item 2
Grid item 3

Display utilities

d-block d-block
hide on lg and wider screens
hide on screens smaller than lg

Flexbox

Flexbox
Flexbox
Flexbox
Flexbox
Flexbox
Flexbox
Flexbox
Flexbox
Flexbox
Flexbox
Flexbox
Flex item with a lot of content
Flex item
Flex item
Flex item
Flex item