mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01: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:
parent
cbaf0c3f7c
commit
1275e35336
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user