After including !DOCTYPE html, I noticed that the first section of my website is shrinking even though its height is set at 120%. I attempted various solutions from stack overflow like setting the height of HTML and body to 100%, but none of them resolved the issue.
Here is the CSS that causes the first section to shrink:
.first-section{
height: 120%;
}
However, when I use this CSS instead, the first section displays properly:
.first-section{
height: 600px;
}
Interestingly, switching from using percentage to px resolves the issue. Ideally, I would like my first section to be responsive to percentage values.