-1
img {
background-image: url(../img/slides/11.jpg);
max-width:100%;
height:auto;
}
When I put the code above, the following error occurs:
The image (as in the photo) goes up.
Since without the code it’s like this:
What can I do?
#home .bg-img {
padding: 100px;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
position: absolute;
top: -50px;
left: -50px;
width: 100%;
height: 100%;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
background-position: center center;
}
#home .bg-img-1 {
background-image: url(../img/slides/11.jpg);}
<div class="bg-img bg-img-1"></div>
I put at the end as is the code in html and css
– isso
I could not reproduce the defect. I could provide a Minimum, Complete and Verifiable Example?
– Miguel Angelo