Is there a way to decrease the spacing between list items in a list group? I attempted to adjust the margin using CSS, but encountered an issue with the last list item not formatting correctly.
CSS
.list-group-item{
margin-bottom: -6px;
margin-top: -6px;
}
HTML
<ul class="list-group ml-3 mr-3 mt-1 sidebar-list-items ">
<li class="list-group-item d-flex p-0 border-0" >
<input class="my-auto ml-2" type="checkbox" id="CheckBox1" />
<label style="font-size: 13px;"class="mt-2 ml-2 w-100 " for="CheckBox1">Acupunture</label>
</li>
<li class="list-group-item d-flex p-0 border-0">
<input class="my-auto ml-2" type="checkbox" id="CheckBox2" />
<label style="font-size: 13px" class=" mt-2 ml-2 w-100" for="CheckBox2">Ayurveda </label>
</li>
<li class="list-group-item d-flex p-0 border-0 ">
<input class="my-auto ml-2" type="checkbox" id="CheckBox3" />
<label style="font-size: 13px" class="mt-2 ml-2 w-100" for="CheckBox3">Homeopathy</label>
</li>
</ul>