Basically I am creating a web page that is going to eventually load content dynamically using PHP.
Right now I am constructing the HTML/CSS for the page so that the design is complete.
My problem is that when I add x amount of content to my page, the content simply overflows out of the element, across the top of my footer and down the page.
What I want is for the content area to resize automatically keeping my footer at the bottom so that all the content is displayed correctly.
Below is a copy of my current web page.
thankyou
HTML
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' type='text/css' href='layout.css'/>
<link href='http://fonts.googleapis.com/css?family=Orienta|Orbitron:700' rel='stylesheet' type='text/css'>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'></script>
</head>
<body>
<header>
<nav>
<span id="logo"><a href="index.html">LOGO</a></span>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Projects</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<div id="wrapper">
<div class="content">
<div class="leftSide">
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
<p>Left</p>
</div>
<div class="rightSide">
<p>Right</p>
</div>
</div>
<footer>
<div class="footer">
<div class="footerInfo">
<h3>My Places</h3>
<ul>
<li><a href="#">Twitter</a></li>
<li><a href="#">Google+</a></li>
<li><a href="#">Youtube</a></li>
<li><a href="#">Daniweb</a></li>
</ul>
</div>
<div class="footerInfo">
<h3>Site Info</h3>
<ul>
<li><a href="#">About Me</a></li>
<li><a href="#">Sitemap</a></li>
</ul>
</div>
</div>
</footer>
</div>
</body>
</html>
CSS
/*
* Green: #32CF0A
*/
*{
margin: 0;
padding: 0;
}
html, body{
height: 100%;
width: 100%;
background: #555;
font-family:'Orienta', sans serif;
}
#wrapper{
height: 100%;
width: 90%;
margin-left: 5%;
margin-right: 5%;
}
/* PAGE ELEMENTS */
header{
color: white;
}
/* LOGO */
#logo a{
margin-left: 25px;
font-size: 45px;
font-family: 'Orbitron', sans-serif;
text-shadow: 0px 0px 8px #32CF0A;
}
/* NAVIGATION */
nav{
width: 100%;
height: 100%;
float: left;
background: #1C1B1B;
font-size: 15px;
}
nav ul{
list-style: none;
float: right;
margin-right: 75px;
}
nav ul li{
float: left;
padding: 40px 25px 5px 25px;
margin-left: 15px;
}
nav ul li a:hover{
text-shadow: 0px 0px 6px #FFF;
}
/* CONTENT */
a{
text-decoration: none;
color: white;
}
.content{
height: 90%;
width: 100%;
background: #EEEEEE;
}
.leftSide{
float: left;
height: 90%;
width: 70%;
background: red;
}
.rightSide{
float: left;
height: 90%;
width: 30%;
background: blue;
}
/* FOOTER */
footer{
height: 180px;
width: 100%;
font-size: 10pt;
}
.footer{
height: 120px;
width: 100%;
background: #343434;
box-shadow: 0 14px 6px -6px rgba(0,0,0,0.7);
}
.footerInfo{
margin-left:70px;
margin-top: 20px;
float: left;
}
.footerInfo h3{
color: #43DFD4;
padding-bottom: 4px;
}
.footerInfo ul{
list-style: none;
text-align: center;
}
.footerInfo li a{
color: white;
}
.footerInfo li a:hover{
text-decoration: underline;
color: #43DFD4;
}