I am facing an issue with displaying two columns in a row using Bootstrap 4. I want the image to take up the entire screen space. Here is my code snippet:
<div class="container-fluid" style="padding-left:0px;">
<div class="row">
<div class="col-md-6 ">
<img class="img-fluid" src="jumbo_background.jpg" />
</div>
<div class="col-md-6">
<div class="contact-wrapper">
<p>Test</p>
</div>
</div>
</div>
</div>
Although everything seems to be working fine and responsive, the displayed result is not as desired:
https://i.sstatic.net/2GJMp.png
The outcome I expect looks like this:
https://i.sstatic.net/IHf2z.png
The image dimensions that I have used are 6000 X 4000
I have attempted the following solutions:
html, body {
height: 100%;
}
Upon inspecting the browser using Google Dev Tools, the body appears to be 100%, but it does not yield the desired result.
I have also tried using h-100
from Bootstrap without success.
Setting height: 100vh;
makes the design unresponsive on smaller devices.
I referred to the link below for assistance:
Height not 100% on Container Fluid even though html and body are
However, I still haven't achieved the desired output. How can I make the image cover the full height in Bootstrap 4?
UPDATE:
Following a solution with resolution 1156 x 1013