I want to give a transparent background to a list group with only top border. Right now I get the default white background.
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
<ul class="list-group bg-transparent">
<li class="list-group-item bg-transparent">Cras justo odio</li>
<li class="list-group-item bg-transparent">Dapibus ac facilisis in</li>
<li class="list-group-item bg-transparent">Morbi leo risus</li>
<li class="list-group-item bg-transparent">Porta ac consectetur ac</li>
<li class="list-group-item bg-transparent">Vestibulum at eros</li>
you can try this, it will work. Its easy may be you did not even tried.
.list-group-item {
background-color: transparent;
border-top: 1px solid #ddd;
border-radius: 0;
color: #fff;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With