So what im trying to do is, a responsive design with multiple images that resize with each other, same size always.
In the green area, I want to have two images that span the width of the window and have the height for both auto and the max height is 300px for div 1, where as div 2 is just overflowed in the y.
The big problem I'm getting is I'm unable to use divs for both, I have to use an img tag for the second image but I want to place content within the second div tag.
Div 1 - repeating x background, Div 2 - an image, Inside div 2 - content
If you need any further clarification just ask, thankyou.
Edit: The headerBackground doesn't show up as the height of 300px that I need it to, but the height needs to resize down for headerBackground the same as headerImage but it can't scale up through 300px
.headerBackground{
background-image: url('image1.png');
min-width: 100%;
height: auto;
max-height: 300px;
overflow-y: hidden;
}
.headerImage{
background-image: url('image2.png');
height: auto;
display: block;
min-width: 100%;
}
<div class="headerBackground">
<div class="headerImage">
<!-- content in here -->
</div>
</div>
