I\'ve got a page using a background-image. background-size is set to cover.
background-size
cover
The content is just a heading and two buttons. I want the div to b
know this is old thread but stumbled upon it.
the following works for me if i know the dimensions of the image,
eg. 1220x404 => 1220/404 = 3.01980198 = 30.1980198
header { max-height: 404px; height: 30.1980198vw; }