The code snippet provided is as follows:
html ,body {
height: 100%;
font-style: Helvetica;
}
.page_background, .page { margin: 0 auto; }
.page_background {
width: 100%;
min-height: 100%;
background: -webkit-linear-gradient(#282828, #888888);
background: -o-linear-gradient(#282828, #888888);
background: -moz-linear-gradient(#282828, #888888);
background: linear-gradient(#282828, #888888);
position: absolute;
}
.page {
background-color: #FFFFFF;
width: 85%;
min-height: 100%;
bottom: 0;
position: absolute;
height: 100%;
left: 7.5%;
}
<div class="page_background">
<div class="page">
</div>
</div>
The issue arises when the page exceeds the height of the screen, causing the background color not to be applied. Both min-height: 100%;
and height: 100%;
have been tested without success. What could be the mistake in the code?