I\'m trying to understand the difference between push and offset in Bootstrap grids. For example the only difference between the two rows below is the third column in each.
Since offset uses margin-left
, and push uses left
:
Here's a visual example: http://www.bootply.com/126557
In your example there are no column 'collisions'. Push and offset appear the same since the neighbouring columns aren't impacted.
.col-md-offset-*
: will increase the left margin by *
classes
.col-md-push-*
/.col-md-pull-*
: will change the order the grid columns appear by *
classes. Pull will send the column to the left, while push send it to the right.
A offset in bootstrap will offset the left side of the column thus moving it over or "offsetting" something to the right. With the "offset" style you can only offset items to the right. For pushes and pulls you can pull something to the "left or right" or you can push something opposite of pull. Pushing or pulling items is primary used for column ordering.