Vertical gutters implementation documentation unintuitive
Created by: thatstatsguy
Prerequisites
-
I have searched for duplicate or closed issues -
I have validated any HTML to avoid common problems -
I have read the contributing guidelines
Describe the issue
Hi all
I've been playing around with the vertical gutters example found on the GetBootstrap website.
What I don't fully understand when using this feature is why gutters don't apply between rows i.e. why does the following code not produce additional spacing between rows?
<div class="container overflow-hidden">
<div class="row g-5">
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding 1</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding 2</div>
</div>
</div>
<div class="row g-5">
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding3</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding4</div>
</div>
</div>
</div>
Looking at the original code it seems like this feature is only intended for columns within a single row i.e.
<div class="container overflow-hidden text-center">
<div class="row gy-5">
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
<div class="col-6">
<div class="p-3 border bg-light">Custom column padding</div>
</div>
</div>
</div>
I'm able to place spacing between rows using something like py-4
, but at first glance, it's not super intuitive.
Reduced test cases
See above
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Firefox
What version of Bootstrap are you using?
5.2