Within a column, I have several span elements:
<div class="container-fluid">
<div class="row">
<div class="col">
<span class="myClass">some text</span>
<span class="myClass">some text</span>
</div>
<div class="col"></div>
</div>
</div>
The myClass elements come with padding:
.myClass{
background: #ecedea;
padding: 10px 10px;
margin-right: 20px;
}
Due to the multiple span elements in the first column, a line break occurs. The issue arises because of overlapping between spans in the first and second lines:
https://i.sstatic.net/ILMfP.png
I attempted to include some margin-top within myClass but it did not resolve the problem.