Bootstrap 3 Multi-column within a single ul not floating properly is basically a question with answers covering bootstrap 3. I tried the solution in bootstrap 4 now and it mostly works but there are some things that do not look clean.
I made a jsfiddle to demonstrate the issue here with the following html-code:
<div class="col-12 container" style="height: 350px;">
<ul class="list-unstyled row">
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
<li class="list-group-item col-4">Test</li>
</ul>
</div>
As you can see, the first and last item still have their round borders:
I tried to get around this by:
- adding the border class to try and force a rectangular border (no effect)
- using
list-group-flush
to remove the curved borders completely (lead to the first item missing the bar at the top and the last one missing the bar at the bottom resulting in another unclean look) - Using
list-group-flush
with afirst
andlast
class to manually add the missing borders (no effect; fiddle here)
I recently started with bootstrap and I am not super familiar with CSS so I wonder what I might be missing (can as well be something super obvious).
(Unsure whether that matters or not but the image above was taken and experiences gained in FF58 Windows 10)