I am using bootstrap for the first time in a tribute page and I am having trouble with the responsiveness of the background image in the jumbotron class. When I resize the screen, only half of the image shows and you have to scroll horizontally to see the whole image. Is there a way to make it automatically adjust and fit entirely within the window.
I've tried using the answers found in this thread (where the image tiles and repeats): Responsive Bootstrap Jumbotron Background Image but they did not work out since the problem is not the same.
HTML code:
<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:
#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;
}
I know that if I am not using the jumbotron class, I can easily add an image element with the class "img-fluid" and that's it. How can I do that in this case?
Thanks in advance!