I am using bootstrap4 and was just curious if its possible to add a background colour/shape to a header tag that runs out of the container class. For example I have the following:
<div class="container">
<div class="row">
<div class="col-md-8">
<h1>What is Lorem Ipsum?</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<h2>Why do we use it?</h2>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.</p>
<p>Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
<h2>Why do we use it?</h2>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.</p>
<p>Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
<h2></h2>
</div>
<div class="col-md-4">
<h3>Test Text</h3>
<hr style="margin-top: 5px; margin-bottom: 5px;">
<img src="https://via.placeholder.com/350">
<hr style="margin-top: 5px; margin-bottom: 5px;">
<img src="https://via.placeholder.com/350">
</div>
</div>
Which currently looks something like this:
How would I go about adding a background colour and shape to achieve the below effect:
I have tried simple background colour changes and have tried Googling this but wasn't really sure what I was looking for and couldn't find much. Any point in the right direction or help would be amazing. Thanks.
question from:
https://stackoverflow.com/questions/65864278/adding-background-colour-shape-that-runs-out-of-the-container-tag 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…