I would like to cover the entire width, but the image to be scaled to 70% of the height.
<div class="Bg">Hello</div>
.Bg {
background-image: url(https://svgshare.com/i/C_9.svg);
background-repeat: no-repeat;
background-size: cover;
height: 60vh;
width: 100%;
}
So I would like the behaviour of background-size: contain
, which stretches the image to the width of background-size: cover
.
Codepen Example: https://codepen.io/anon/pen/oOyYoR