I am facing an issue with my bootstrap grid setup. I have a card with an image inside a column, but the card does not occupy the full width of the column. How can I fix this?
View current state of my column
I've experimented with adjusting the width of the card, but it seems that there is a maximum limit to the grid size or other elements on the page are affected for certain grid sizes.
div class="container2">
<div class="row">
<!-- outer grid first column -->
<div class="col-8">
MODULES
<div class="module-container">
<!-- first column inner grid -->
<div class="row">
<div class="col-6">
<img src="images/GC.png" class="img-top img-responsive fit-image" alt="module 1" >
GC
</div>
CSS
.fit-image{
width: auto;
object-fit: cover;
height: 300px; /* only if you want fixed height */
}