In my bootstrap design, I have nested columns where the grey background color for my h3
element has gaps on the left and right due to the padding of the bootstrap columns. While I can remove the padding by using padding:0px
, this will affect all elements. Is there a way to specifically remove padding for just the h3
element?
<div class="col-12">
<h3 style="text-align:center;background-color:grey;">WAIVER</h3>
<div class="col-md-6 col-12">
<p>lorem ipsum</p>
</div>
<div class="col-md-6 col-12">
<p>lorem ipsum</p>
</div
</div>