I used foundation 5 framework for designing a page. It has a logo placed on the top of the background image. Link: Demo Page
The styles for those two images are:
header {
position: relative;
}
.logo {
background: url("../img/text2save.png");
background-position: left top;
background-repeat: no-repeat;
background-size: contain;
position: absolute;
z-index: 2;
width: 20%;
height: 80px;
}
header div {
background: url("../img/banner.jpg");
background-repeat: no-repeat;
height: 300px;
background-size: 100%;
}
Problem: When the browser is resized down the background image leaves blank space below it i.e., the other element moves down. I couldn't figure out the solution.
The Site: http://text2save.tushark.com.np