Looking to create a scrollable box with Bootstrap 4 that adjusts its height based on content? Check out the images below for reference:
https://i.sstatic.net/BTVpi.png
The goal is to eliminate unnecessary vertical white space, like in this example:
https://i.sstatic.net/2TPoO.png
Current HTML code being used:
<div class="col-sm-3">
<h2>Domains (258)</h2>
<ul class="overflow-auto domain-list">
<li><a href="...">1bh3A00</a></li>
[...]
<li><a href="...">8prnA00</a></li>
</ul>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<a href="....csv"><button class="btn"><i class="fa fa-download"></i> Domains CSV</button></a>
CSS code currently in use:
.domain-list { height: 30em; }
Struggling to find a solution? Let's brainstorm and make it work seamlessly together!