https://i.sstatic.net/sipAp.jpgI'm currently working on a complex Bootstrap-4 grid-layout and facing a challenge. I need to extend the background of a column from the left edge to the right edge of the browser window, without affecting the content within. Is there a way to achieve this seamlessly?
<div class="container">
<div class="row">
<div class="col">
<h2 class="font-weight-light">Hello!</h2>
<p>
This background should remain white.
</p>
</div>
</div>
<div class="row mybackground">
<div class="col">
The red background should stretch across the entire browser width, while keeping the top and bottom areas with a white background.
</div>
</div>
</div>
https://jsfiddle.net/enu2vxdw/
In the fiddle provided, the background of < div class="mybackground" > should span from left to right (without any white padding on the sides), while maintaining the content as is.
Any suggestions on achieving this with minimal changes? Implementing a simple CSS class would be highly appreciated, considering the numerous places in the code where this modification is required.