Offsets play a crucial role in spacing out elements within the responsive grid system.
The measurement is closely tied to the column structure.
To set an offset, use the following syntax:
col-[breakpoint]-offset-[number of columns]
For instance, assuming our grid consists of 12 columns:
<div class="row">
<div class="col-md-6 col-md-offset-3">
<p>test</p>
</div>
</div>
This indicates that at the medium breakpoint, the element will take up 6 columns with 3 blank columns preceding it (and therefore 3 blank columns will follow as well).
As a result, a div of 6 columns will be centered within its container.
An illustration of this behavior can be found in the Bootstrap documentation.
https://getbootstrap.com/docs/4.3/layout/grid/#offsetting-columns