My problem arises from the challenge of aligning my sidebar and a table vertically. Despite attempting to use float: left
on the table, it only expanded the site width without properly aligning them side by side within Bootstrap, CSS, and HTML constraints.
For a clearer picture, refer to the image below:
sidebar {
overflow: hidden;
z-index: 3;
}
#sidebar .list-group {
min-width: 400px;
background-color: #333;
min-height: 80vh ;
}
#sidebar i {
margin-right: 6px;
}
#sidebar .list-group-item {
border-radius: 0;
background-color: #333;
color: #ccc;
border-left: 0;
border-right: 0;
border-color: #2c2c2c;
white-space: nowrap;
}
/* Additional styles go here*/
Follow the remaining code for further styling...