Try to remove this so you are not specifying the width:
width: 100vw !important;
and change your:
background-size: 96% !important;
to
background-size: cover !important;
See if that works how you would like.
Try to remove this so you are not specifying the width:
``width: 100vw !important;``
and change your:
``background-size: 96% !important;``
to
``background-size: cover !important;``
See if that works how you would like.
Works perfect on desktop and mobile. Thank you.
.subbanner {
display: grid;
margin: 0px;
position: relative;
height: 10vw;
background-size: cover !important;
background: url(%%banner%%) no-repeat center;
background-position: top center;
}
.subbannerm {
display: grid;
margin: 0px;
position: relative;
height: 10vw;
background-size: cover !important;
background: url(%%banner%%) no-repeat center;
background-position: top center;
}
Works perfect on desktop and mobile. Thank you.
```
.subbanner {
display: grid;
margin: 0px;
position: relative;
height: 10vw;
background-size: cover !important;
background: url(%%banner%%) no-repeat center;
background-position: top center;
}
.subbannerm {
display: grid;
margin: 0px;
position: relative;
height: 10vw;
background-size: cover !important;
background: url(%%banner%%) no-repeat center;
background-position: top center;
}
```
You're welcome.
You're welcome.
Is it possible to ignore the aspect ratio of the image and make the image "fit" to the available space?
Is it possible to ignore the aspect ratio of the image and make the image "fit" to the available space?
(post is archived)