mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
add grid docs mention
This commit is contained in:
parent
7e96979cea
commit
b0b28c81e5
@ -324,6 +324,20 @@ Don't want your columns to simply stack in some grid tiers? Use a combination of
|
|||||||
{% include example.html content=example %}
|
{% include example.html content=example %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
### Gutters
|
||||||
|
|
||||||
|
Gutters can be responsively adjusted by breakpoint-specific padding and negative margin utility classes. To change the gutters in a given row, pair a negative margin utility on the `.row` and matching padding utilities on the `.col`s.
|
||||||
|
|
||||||
|
Here's an example of customizing the Bootstrap grid at the large (`lg`) breakpoint and above. We've increased the `.col` padding with `.px-lg-5` and then counteracted that with `.mx-lg-n5` on the parent `.row`.
|
||||||
|
|
||||||
|
{% capture example %}
|
||||||
|
<div class="row mx-lg-n5">
|
||||||
|
<div class="col py-3 px-lg-5 border bg-light">Custom column padding</div>
|
||||||
|
<div class="col py-3 px-lg-5 border bg-light">Custom column padding</div>
|
||||||
|
</div>
|
||||||
|
{% endcapture %}
|
||||||
|
{% include example.html content=example %}
|
||||||
|
|
||||||
## Alignment
|
## Alignment
|
||||||
|
|
||||||
Use flexbox alignment utilities to vertically and horizontally align columns.
|
Use flexbox alignment utilities to vertically and horizontally align columns.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user