Currently, I am delving into the world of bootstrap as I work on a tribute page for the first time. The issue at hand revolves around the responsiveness of the background image within the jumbotron class. Upon resizing the screen, only half of the image is displayed and requires horizontal scrolling to view it in its entirety. Is there a way to automatically adjust the image so that it fits perfectly within the window?
Although I attempted solutions from this thread (which involved tiling and repeating the image): Responsive Bootstrap Jumbotron Background Image, they did not address my specific concern.
The HTML code in question:
<div id="jumbotron1" class="jumbotron">
<!-- title text -->
<div id="title-container" class="container rounded">
<h1 id="title-text" class="text-center">Hattie McDaniel</h1>
</div>
</div>
CSS code snippet:
#jumbotron1{
background-image:
url('//cdn3.thr.com/sites/default/files/2015/02/hattie.png');
background-size: cover;
height: 580px;
padding: 0px;
margin-bottom: 0px;
background-repeat: no-repeat;
}
If the jumbotron class is not utilized, adding an image element with the "img-fluid" class would resolve this matter easily. But how can I achieve that in this particular scenario?
Thank you in advance for your assistance!