I need to fit an image of size 1800px by 200px into a jumbotron so that the jumbotron's size adjusts to fit the image. The jumbotron should also be responsive to different screen sizes.
Here is my code:
<style>
.jumbotron1{
background-image: url(/img/ffHeadernologo.png);
background-size: cover;
text-align: center;
width:100%;
padding-bottom: 11.1111% /* ( 1800 / 200 ) = 9; 100 / 9 = 11.1111 */
max-height: 100%;
overflow: hidden;
}
</style>
What I want to achieve is:
This is my background
I also have a logo as follows
The logo should be in a separate div and the background should be set as above, which is currently working fine.
I would like the result to look like this
How can I achieve this? The above solution is not working well with what I have, any suggestions? I have looked at similar questions before but they did not help, so I am asking again.
In the third image, the black line needs to be removed, it should be present. Thank you.