I am currently working on constructing an image grid with Bootstrap 4. The grid is contained within the class "showcase." In the first row, there are two landscape photos, and in the second row, there are three portrait photos. My challenge is to align the portrait photos with the landscape photos - one to the left, one in the center, and one to the right. I aim for them to have consistent margins for a visually appealing layout.
I have attempted various methods such as researching online and adjusting margins independently. I experimented with classes like "row-sm-4" but haven't achieved the desired outcome.
<div class = "showcase">
<!-- First row with 2 landscape wallpapers -->
<div class = "row" id = "land">
<div class = "col">
<img src="img/land1.jpg" class="rounded float-left" alt = "Landscape wallpaper" width = "500" height = "350">
<img src="img/land2.jpg" class="rounded float-right" alt = "Landscape wallpaper" width = "500" height = "350">
</div>
</div>
<!-- Second row with 3 portrait wallpapers-->
<div class = "row" id = "port">
<div class = "col-bg-4">
<img src="img/p1.jpeg" class="rounded float-left" id = "firstp" alt = "Portrait wallpaper" width = "200" height = "350">
<img src="img/p2.jpg" class="float-center" id = "secondp" alt = "Portrait wallpaper" width = "200" height = "350">
<img src="img/p3.jpg" class="rounded float-right" alt = "Portrait wallpaper" width = "200" height = "350">
</div>
</div>
</div>
The objective is to ensure all photos display with equal margins on both sides.