My goal is to create a single-page website with a table as the main content. The first column of this table should be toggleable by a button.
I specifically want to display the first column of the table only on the slidebar and not both the table and the slidebar simultaneously. Clicking the button should minimize the first column of the table.
I am new to front-end concepts and seeking guidance on how to achieve this idea. Any help or answers would be greatly appreciated.
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<div class="sidebar">
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column"
data-widget="treeview" role="menu"
data-accordion="false">
<div>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="far fa-user"> </i>
<p>
Adelfried
</p>
</a>
</li>
</div>
<div class="dropdown-divider"></div>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="far fa-user"> </i>
<p>
Kalona
</p>
</a>
</li>
<div class="dropdown-divider"></div>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="far fa-user"> </i>
<p>
Raynard
</p>
</a>
</li>
<div class="dropdown-divider"></div>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="far fa-user"> </i>
<p>
Wesley
</p>
</a>
</li>
<div class="dropdown-divider"></div>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="far fa-user"> </i>
<p>
Theobald
</p>
</a>
</li>
<div class="dropdown-divider"></div>
</ul>
</nav>
</div>
</aside>
<div class="content" style="overflow: scroll; padding: 10px">
<div class="container-fluid">
<div class="row">
<div>
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<td>Name</td>
<td>AAAAAAAAAAAAAA</td>
<td>BBBBBBBBBBBBBB</td>
<td>CCCCCCCCCCCCCC</td>
<td>DDDDDDDDDDDDDD</td>
<td>EEEEEEEEEEEEEE</td>
</tr>
</thead>
<tbody>
<tr>
<td><i class="far fa-user"> </i>Adelfried</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><i class="far fa-user"> </i>Kalona</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><i class="far fa-user"> </i>Raynard</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><i class="far fa-user"> </i>Wesley</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td><i class="far fa-user"> </i>Theobald</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>