I'm quite new to Bootstrap and CSS, and I'm trying to make a home screen for my website. I want to make sure the image (intrinsic size 1920x1080) fits to the viewport exactly. Currently part of the image renders off screen and you have to scroll down to view the rest. This is not what I want to happen.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<div class="container-fluid" id="home">
<img src="https://via.placeholder.com/1920x1080" class="img-fluid" alt="homeImg" id="homeImg">
</div>
Here is the code I am using.
I understand that the "-fluid" tag will make the image fill the width of the screen, and that the height of the image will be set to maintain the aspect ratio, but I just want the whole image to fill the screen.
It's probably quite simple but the answer eludes me and I'm struggling to find a solution online, hence the post here. If people were able to lend a hand, it'd be much appreciated.