I have a basic stacked row layout that displays an upper box and lower box without any padding.
<span id="route" class="small">
<div class="row" style="border-style:solid;">
<div class="col-md-12 col-12">
<p>UpperBox</p>
<p>UpperBox</p>
<p>UpperBox</p>
<p>UpperBox</p>
</div>
</div>
<div class="row" style="border-style:solid;">
<div class="col-md-12 col-12">
<p>LowerBox</p>
<p>LowerBox</p>
<p>LowerBox</p>
</div>
</div>
</span>
But when I dynamically insert the same source code using JavaScript,
Padding appears between the two vertical boxes.
Do you know what could be causing this issue?
div.push(`
<div class="row" style="border-style:solid;">
<div class="col-md-12 col-12">
<p>UpperBox</p>
<p>UpperBox</p>
<p>UpperBox</p>
<p>UpperBox</p>
</div>
</div>
`);
div.push(`
<div class="row" style="border-style:solid;">
<div class="col-md-12 col-12">
<p>LowerBox</p>
<p>LowerBox</p>
<p>LowerBox</p>
</div>
</div>
`);
$('#route').html(div.join());