My design includes two columns on desktop, each with a size of 6
.
https://i.sstatic.net/M33c8.png
However, on mobile, I want these columns to adjust to the height of the phone screen.
https://i.sstatic.net/3Z44d.png
Is there a way to make the height variable using Bootstrap 4 based on the device?
This is what I have tried so far:
<div class="row h-100">
<div class="col-xl-6 h-100"></div>
<div class="col-xl-6 h-100"></div>
</div>
How can I adjust the h-100
class dynamically based on the device, such as using h-sm-50
and h-xl-100
?