I have this example in bootstrap 5 where I nest a row in a column that is nested in an outer row where the inner row has a padding of 5 and the column has a padding of 1. I added the colors and borders for clarity.
<div class="row p-5" style="background-color: #0F4C99; border: 3px solid black">
<div class="col-12 p-1" style="background-color: #E6005F; border: 3px solid black">
<div class="row p-5" style="background-color: #E6B625; border: 3px solid black">
</div>
</div>
</div>
you can clearly see from the image that the inner row overflows into the outer row on the sides because it's covering its parent column, but it isn't overflowing on top or below.
My question is why does this happen and what can I do to solve it?
