I have set up my bootstrap columns as shown below:
<div class="col-6">
<a href="gallerij/stockfotos/boeken" class="catphotowrap">
<div class="catphotodiv">
<img class="galleryicon" src="website/images/category_icons/8dxVaqo1QlsfhsHnsb0yeCTwwhoIZqBcW80lEJNn.svg" />
<h2>Boeken</h2>
<div class="catphotooverlay"></div>
<img class="gallerybgimg" src="website/images/photos/previews/preview-003fafb080bd3f96d74fbdef3fa1a859.jpg" />
</div>
</a>
</div>
... (additional columns omitted for brevity) ...
However, on mobile devices, there is too much space between the columns, as evident in this screenshot: https://i.sstatic.net/neeR1.png
I want to decrease the padding specifically between the columns without affecting the overall layout. While I found solutions on Stack Overflow to remove or adjust padding universally, I am looking for a way to target only the column spacing.
Is there a method within Bootstrap 4 that allows me to achieve this goal? I have looked into offset classes like offset-md-*
, but they seem to increase rather than decrease the space between columns.