mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-08 14:46:34 +02: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 %}
|
||||
<div class="row mx-md-n5">
|
||||
<div class="col py-3 px-md-5 border bg-light">Custom column padding</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 class="col px-md-5"><div class="p-3 border bg-light">Custom column padding</div></div>
|
||||
</div>
|
||||
{% endcapture %}
|
||||
{% include example.html content=example %}
|
||||
|
Reference in New Issue
Block a user