Sir I have these codes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> <title>Test Page</title> <style type="text/css">
html {
overflow: auto;
}
body {
font-family: Georgia, "Times New Roman", Times, serif;
}
#container
{
position: absolute;
margin: auto;
left: 0;
right: 0;
top:0;
bottom:0;
background-color: #FFF;
border: 1px solid #06F;
box-shadow: 0px 0px 30px rgba(135, 206, 235, 0.78);
width:50%;
height:350px;
overflow:auto;
}
#small_header {
width: 97%;
height: 20px;
padding: 5px;
overflow: hidden;
text-align: left;
color:white;
border: 1px solid #CCC;
background:#393;
}
#small_footer {
width: 97%;
height: 20px;
padding: 5px;
overflow: hidden;
text-align: left;
color:white;
border: 1px solid #CCC;
margin-bottom:0;
background:#39C;
}
</style> </head> <body> <div id='container'> <div id="small_header">Header</div> <div id="small_footer">Footer</div> </div> </body> </html>
Footer div is under Header div but I want to put footer div at the bottom of parent div like this image