This is my first time using Bootstrap 4 and I am trying to create a website with blank columns on the left and right in large view, but I want them to disappear in small view.
https://i.sstatic.net/nzk97.png
https://i.sstatic.net/sobEO.png
I have structured my HTML like this to create the three columns: two blank ones and the gray one in the middle:
<div class="container-fluid">
<div class="row">
<div class="col"></div>
<div class="col-sm-12 col-md-8"></div>
<div class="col"></div>
</div>
</div>
However, due to the min-height: 1px;
property applied to all .col-*
classes by Bootstrap, the blank columns still create space even when they should be hidden, disrupting my layout.
https://i.sstatic.net/rGwsl.png
Is there a way to achieve what I want? Am I using Bootstrap 4 correctly for this purpose?