Despite adjusting padding with the image, div section, and grid gap to 0px in the grid layout, the image still fails to cover the entire cell. I am seeking a solution to eliminate these unwanted paddings that are highlighted in blue.
The Bootstrap 5 .g-0 class effectively removes gutters between columns but does not address the issue of gutters between rows.
Displayed below is a screenshot of my current webpage:
.ai {
width: 100%;
height: 100%;
padding: 0px;
}
.algo {
padding: 0px;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid added-by-community">
<div class="row added-by-community">
<div class="col-sm-6 col-lg-4 col-md-4 col-xl-4 col-xxl-4 algo bg-primary">
<figure>
<img class="img-fluid ai" src="https://via.placeholder.com/600x200" />
</figure>
</div>
<div class="col-sm-6 col-lg-4 col-md-4 col-xl-4 col-xxl-4 algo bg-primary">
<figure>
<img class="img-fluid ai" src="https://via.placeholder.com/600x200" />
</figure>
</div>
<div class="col-sm-6 col-lg-4 col-md-4 col-xl-4 col-xxl-4 algo bg-primary">
<figure>
<img class="img-fluid ai" src="https://via.placeholder.com/600x200" />
</figure>
</div>
<div class="col-sm-6 col-lg-4 col-md-4 col-xl-4 col-xxl-4 algo bg-primary">
<figure>
<img class="img-fluid ai" src="https://via.placeholder.com/600x200" />
</figure>
</div>
<div class="col-sm-6 col-lg-4 col-md-4 col-xl-4 col-xxl-4 algo bg-primary">
<figure>
<img class="img-fluid ai" src="https://via.placeholder.com/600x200" />
</figure>
</div>
<div class="col-sm-6 col-lg-4 col-md-4 col-xl-4 col-xxl-4 algo bg-primary">
<figure>
<img class="img-fluid ai" src="https://via.placeholder.com/600x200" />
</figure>
</div>
</div>
</div>