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?
Are you wanting the background image to always be fully visible vertically, but horizontally it would scale and stretch to fill the element up to but not behind the scrollbar?
Are you wanting the background image to always be fully visible vertically, but horizontally it would scale and stretch to fill the element up to but not behind the scrollbar?
(post is archived)