My design includes a jumbotron with a responsive image, where the image scales according to the screen size.
<div class = 'jumbotron'>
<button type= 'button' id="read" class='btn btn-primary'>Button</button>
</div>
.jumbotron {
background: url('img/Banner-logo5.jpg') no-repeat center center;
background-size: contain;
background-repeat: no-repeat;
width: 100%;
height: 0;
padding-top: 52.18%;
/* (img-height / img-width * width) */
/* (1067 / 2045 * 100) */
}
However, I'm facing an issue where the content inside the jumbotron gets pushed outside of it. Is there a way to keep the content inside the jumbotron while maintaining the responsiveness of the image?