mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
Fix negative margin example (#28140)
Negative margin example wasn't displaying correctly due to border and background styling being applied directly to the `.col` element. Made a child element and applied the styling to it
This commit is contained in:
@@ -98,8 +98,8 @@ Here's an example of customizing the Bootstrap grid at the medium (`md`) breakpo
|
|||||||
|
|
||||||
{% capture example %}
|
{% capture example %}
|
||||||
<div class="row mx-md-n5">
|
<div class="row mx-md-n5">
|
||||||
<div class="col py-3 px-md-5 border bg-light">Custom column padding</div>
|
<div class="col px-md-5"><div class="p-3 border bg-light">Custom column padding</div></div>
|
||||||
<div class="col py-3 px-md-5 border bg-light">Custom column padding</div>
|
<div class="col px-md-5"><div class="p-3 border bg-light">Custom column padding</div></div>
|
||||||
</div>
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
{% include example.html content=example %}
|
{% include example.html content=example %}
|
||||||
|
|||||||
Reference in New Issue
Block a user