I've practicing how to create a template. My first problem is how to stick the footer at the bottom of the screen if the content is not long enough to fill the whole screen. it was solved using this tutorial http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page
My other problem was how to fill in the sidebar all the way down to the footer.
here's the html:
<div id="wrapper">
<div id="header">
header here
</div>
<div id="container">
<div id="sidebar">
sidebar here
</div>
<div id="content">
content here
</div>
</div>
<div class="cls"></div>
<div id="footer">
footer here
</div>
</div>
here's the css:
body{
padding: 0;
margin: 0;
}
.cls{
clear:both;
}
#wrapper{
min-height: 100%;
position: relative;
}
#header{
background-color: #DDDDDD;
height: 60px;
}
#container{
padding-bottom: 60px;
width: 100%;
}
#sidebar{
background-color: #87CEFA;
width: 220px;
float: left;
padding-right: 20px;
}
#content{
width: 75%;
float:right;
}
#footer{
background-color: #CCCCCC;
bottom: 0;
position: absolute;
width: 100%;
height: 60px;
}
Opening the image link, the one on the left side is what I have right now....I want the result to be what's on the right side http://www.4shared.com/photo/CoXrUWP2/template.html