I've been struggling to create 4 columns in my design, but I just can't seem to make it work. I've tried setting the height to 100% in each div, but it didn't produce the desired result. I was able to achieve it with colors, but not with images.
So, I'm wondering how I can divide the window into 4 columns that adjust when resized and populate them with images?
I also have a nav-bar that I want to include, but I can set it with z-index=1 to ensure it remains visible.
#index1 {
background: url('img/WhatsApp Image 2022-01-24 at 17.07.09.jpeg');
position: relative;
}
#index2 {
background: url('img/WhatsApp Image 2022-01-24 at 17.07.08.jpeg');
position: relative;
}
#index3 {
background: url('img/WhatsApp Image 2022-01-24 at 17.07.08(1).jpeg');
position: relative;
}
#index4 {
background: url('img/WhatsApp Image 2022-01-24 at 17.07.08(2).jpeg');
position: relative;
}
<div class="row col-md-12" style="width:100%; height:100%">
<div class="col-md-3" id="index1"><input type="button" class="btn btn-outline-info" onclick="myFunction1()" value="Calendar" /></div>
<div class="col-md-3" id="index2"><input type="button" class="btn btn-outline-info" onclick="myFunction2()" value="Classifications" /></div>
<div class="col-md-3" id="index3"><input type="button" class="btn btn-outline-info" onclick="myFunction3()" value="Winner-Driver" /></div>
<div class="col-md-3" id="index4"><input type="button" class="btn btn-outline-info" onclick="myFunction4()" value="Winner-Constructor" /></div>
</div>