My CSS:
The wrapper won't center, it will either be aligned left or right. Also I want the information in the body to extend the height but it won't.
html, body, #container{
position: absolute;
color: black;
width: 100%;
min-height: 100%;
margin: 0;
background-color: lightgrey;
}
#wrapper{
position: absolute;
margin: 0 auto;
width: 70%;
background-color: white;
border: solid 1px black;
}
#header{
position: absolute;
width: 100%;
height: 250px;
overflow: hidden;
border: solid 1px red;
}
#banner{
position: absolute;
height: 200px;
width: 100%;
border: solid 1px blue;
}
#logoDiv{
position: absolute;
height:200px;
width: 200px;
border: solid 1px green;
}
#titleDiv{
position: absolute;
height: 200px;
margin-left: 200px;
}
#navBar{
width: 100%;
margin-top: 200px;
position: absolute;
height: 50px;
text-align: center;
background-color: #333;
}
#content{
margin-top: 250px;
height: 9000px;
min-height: calc(100%-250px-100px);
width: 100%;
background-color: aquamarine;
}
#body{
padding: 0 50px;
overflow-y: auto;
word-wrap: break-word;
width: 100%;
}
#footer{
}
My HTML:
These are the divs I have used in the HTML.
<body>
<div id="container">
<div id="wrapper">
<div id="header">
<div id="banner">
<div id="logoDiv"></div>
<div id="titleDiv"></div>
</div>
<div id="navBar"></div>
</div>
<div id="content">
<div id="body"></div>
</div>
<div id="footer">
<div id="contactLinksDiv"></div>
</div>
</div>
</div>
</body>
Having trouble with getting the content to expand as the body div also expands from text.