There seems to be some spacing between the green and blue colored divs in the snippet below, caused by the top margin of the <p>
tag extending beyond the <div>
. The blue div should ideally start right after the green div. Any suggestions on how to eliminate this gap?
#dslc-module-6dbe075eac8 h1 {
background-color: green;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
margin-bottom: 0px;
min-height: 0px;
}
#dslc-module-a2d37913705 .dslc-tp-content {
background-color: blue;
}
<div class="dslc-modules-area dslc-col dslc-12-col dslc-last-col" data-size="12">
<div id="dslc-module-6dbe075eac8" class="dslc-module-front dslc-module-DSLC_TP_Title dslc-in-viewport-check dslc-in-viewport-anim-none dslc-col dslc-12-col dslc-last-col dslc-module-handle-like-regular dslc-in-viewport" data-module-id="6dbe075eac8"
data-dslc-module-id="DSLC_TP_Title" data-dslc-module-size="12" data-dslc-anim="none" data-dslc-anim-delay="0" data-dslc-anim-duration="650" data-dslc-anim-easing="ease" data-dslc-preset="none" style="animation: forwards 0.65s ease none;">
<div class="dslc-tp-title">
<h1>Difference between StringBuffer and StringBuilder</h1>
</div>
</div>
<!-- .dslc-module -->
</div>
<div id="dslc-module-a2d37913705">
<div class="dslc-tp-content">
<div id="dslc-theme-content">
<div id="dslc-theme-content-inner">
<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>
</div>
</div>
</div>
</div>