Attempting to extend an image beyond the top and bottom of a div. Successful in extending it below, but how can I achieve this effect above?
Check out the online demo here.
.about {
background-image: linear-gradient(100deg, #483dec, #4074eb);
}
.about img {
width: 100%;
margin-bottom: -100px;
}
.about .desc-section {
margin: auto 0;
}
.about h2 {
font-size: 24px;
color: #ffffff;
}
.about p {
font-size: 16px;
line-height: 2;
color: #ffffff;
}
<section class="about">
<div class="container">
<div class="row">
<div class="col-6">
<img src="https://images.unsplash.com/photo-1558981001-1995369a39cd?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80" alt="">
</div>
<div class="col-6 desc-section">
<h2>This is heading</h2>
<p>Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is.</p>
</div>
</div>
</div>
</section>