I am trying to create a table that can be scrolled vertically using the standard overflow: auto property without specifying a set height for the table's container.
While Bootstrap provides a class called table-responsive for handling horizontal scrolling, I am struggling to achieve vertical scrolling without setting a maximum height directly on the table's container.
Below is a snippet of the HTML and Bootstrap code I am currently using:
<div class="card card-bordered m-3 w-50" style="height: 400px">
<div class="card-body px-3 pt-2 pb-0">
<div class="table-responsive" style="overflow: auto">
<table class="table table-bordered table-sm mb-0">
<thead>
If you would like to view the complete card, you can do so on this codepen link: https://codepen.io/Daggett/pen/wvvJxpp
Adding more rows to the table reveals that there is no vertical scrolling functionality. Any advice or suggestions would be greatly appreciated.