My goal is to have the body extend as the page size increases. I attempted setting the height of the body to 100% and the height of the html element to 100%, but it didn't produce the desired outcome:
In this illustration, blue represents the body and red represents the html element
I am trying to make sure that the body covers the entire html element. Below is the CSS code I currently have:
html {
font-family: Palatino, 'Palatino Linotype', serif;
background-color: red;
height: 100%;
margin: 0;
padding: 0;
}
body {
background-color: blue;
height: 100%;
margin: 0;
padding: 0;
}
I would greatly appreciate any assistance with this issue!