Problem you have set footer
as #
(id) in html but in css, you have defined it as a .
(class)
you css says :
.footer {
height: 15%;
}
your html says
<div id="footer">
Solution :
.wrapper {
height: 100%;
border:1px solid red;
position:relative /* added */
}
#footer {
position:absolute; /* added */
height: 15%;
bottom:0; /* added - fix to bottom */
left:0; /* added -for full width */
right:0; /* added -for full width */
}
Also,in you html,body
you have set max-height
but not height
, so height of parent elemt of wrapper is not defined, so it doesn't inherit 100%
of browser height
html, body {
margin: 0;
padding: 0;
width: 100%;
max-height: 1024px;
height: 100%;/*missing*/
background-image: url(landing-page3.jpg);
background-repeat: no-repeat;
background-size: 100% 100%;
}
EDIT
Rather then placing img
in footer
....set it as background
#footer {
min-height: 15%; /* will wrap content if it higher than 15% :) */
width:100%;
background-image: url(http://www.smarthosting.rs/footer.png);
background-repeat: no-repeat;
background-size: 100% 100%;
}