I recently created a website that is optimized for tablet screens and included images. However, I noticed an unwanted gap between the first column and third column that needs to be fixed. My plan is to adjust the layout using Bootstrap code or another method.
(https://i.sstatic.net/RZkAK.jpg)
Below is the code snippet:
<!-- entry point -->
<div class="container mt-5">
<h1 class="display-3">Lorem ipsum dolor </h1>
<div class="row">
<div class="col-lg-8">
<p class="lead">Lorem, ipsum dolor sit amet consectetur adipisici</p>
<p><span class="badge text-bg-dark active">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Natus et veritatis, dolores ipsum reprehender</p>
</div>
<div class="col-lg-4"></div>
</div>
</div>;
<!-- portfolio display -->
<div class="container mt-5">
<div class="row">
<div class="col-lg d-flex flex-wrap">
<div class="col-xxl-4">
<div class="portfolio-item">
<img class="rounded img-fluid" src="https://picsum.photos/410/300">
</div>
<div class="portfolio-item">
<img class="rounded img-fluid" src="https://picsum.photos/410/600">
</div>
</div>
<div class="col-xxl-4">
<div class="portfolio-item">
<img class="rounded img-fluid" src="https://picsum.photos/410/500">
</div>
<div class="portfolio-item">
<img class="rounded img-fluid" src="https://picsum.photos/410/610">
</div>
</div>
<div class="col-xxl-4">
<div class="portfolio-item">
<img class="rounded img-fluid" src="https://picsum.photos/410/310">
</div>
<div class="portfolio-item">
<img class="rounded img-fluid" src="https://picsum.photos/410/615">
</div>
</div>
</div>
</div>
</div>
<style>
.portfolio-item {
flex-basis: calc(20% - 20px); /* Setting item width */
padding: 20px; /* Adjusts spacing between items */
}
</style>
<!-- end of portfolio section -->
<br><br>
<nav aria-label="Page navigation example">
<ul class="pagination justify-content-center">
<li class="page-item disabled">
<a class="page-link">Previous</a>
</li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
<a class="page-link" href="#">Next</a>
</li>
</ul>
</nav>