Currently, I am working on a webpage with a header, page content, and footer sections.
The issue I'm facing is that I set the page's height to height :auto;
, but it's not functioning as expected. I actually need the page to automatically expand in size as needed.
Here is the relevant CSS code:
/* Page */
#page-wrapper {
overflow: auto;
height: auto;
text-align: center;
}
#page {
overflow: auto;
width: 1120px;
margin: 0px auto;
padding: 50px 40px;
color: #8F8F8F;
min-height:700px;
height:auto;
}
And this is the corresponding HTML structure:
<body>
<div id="banner">
<div class="img-border">
<div id="header-wrapper">
<div id="header">
<div id="logo">
</div>
</div>
</div>
</div>
</div>
<div id="wrapper">
<div id="page-wrapper">
<div id="page">
<div id="wide-content">
</div>
</div>
</div>
</div>