At this website, I'm utilizing the CSS3 Cover
property within the Background
rule to extend an image behind the header.
Presently, I've had to assign a min-height
of 500px
to the header
element for it to display properly. However, this is not the most efficient solution as I want the image to shrink proportionally when the window size changes. Do you think JavaScript could be the answer?
The code snippet in question is as follows:
<div style="background: url(http://altushealthsystem.com/dev/wp-content/uploads/home-banner.jpg) no-repeat 0 0 transparent;background-size: cover; min-height: 500px;"></div>
Here's a link to the JS Fiddle
Do you think this can be achieved?