I'm working on building a page with a 2 column layout, header, and footer. I'm using div's, html, and css.
The Problem I'm Experiencing is the left column that is created by div#sideBar extends over the footer when content is added.
The Solution I'm Looking For is I'd like the left column to 'push' the footer down and extend the length of the div#contentWrapper when more content is added to the div#sideBar.
I've looked through several tutorials, but I can't seem to figure it out. Can someone please direct me to a tutorial that will solve this problem or help me modify the code below so the page it creates will extend (push down footer) as content is added to the div#sideBar?
The ScreenShot below shows the result of the code below.
<style type="text/css">
#wrapper {
width: 900px;
margin: auto;
}
#header {
background-color: #0F0;
}
#contentWrapper {
background-color: #FF0;
}
#footer {
background-color: #00F;
}
#sideBar {
float: left;
width: 200px;
height: 100%;
color: #F00;
}
#content {
width: 700px;
margin-left: 200px;
background-color: #FFF;
}
p {
margin: 0px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
Home | Page One | Page Two </div>
<div id="contentWrapper">
<div id="sideBar">
<p>
<ul>
<li>Home</li>
<li>Page One</li>
<li> Page Two</li>
</ul>
</p>
<p>hgfds</p>
<p>kgjkfhghf</p>
<p>jkfhgjdffgfhj</p>
<p>ljkfhgjdf</p>
<p>;klgjhg</p>
<p>lkgjhfg</p>
<p>lgkjhfg</p>
<p> </p>
</div>
<div id="content">
<p>Content for id "content" Goes Here</p>
<p> </p>
<p> </p>
<p> </p>
</div>
</div>
<div id="footer">
<p>CopyRight 2014</p>
<p>Home | Page One | Page Two</p>
</div>
</div>
</body>
</html>