Hi guys,
I'm trying to design a webpage using tableless layout; however, i'm experiencing problems when it comes to height of the page. I used jquery accordion to minimize the use of scroll bars in the page. However, im experiencing an overlapping of the div's when i collapse the accordion. The accordion part overlaps the bottom edge of the page and overlaps the footer too. How can i automatically adjust the height of the page without overlapping the other div's in the page.
as if you can the attached image is the basic layout that i made. the content part of the page will be dynamically populated; so i need to automatically adjust the contents div's using css
Thanks! Nhoyti
here's the html code i made; can you please help me out to correct it?
<!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" />
<title>Untitled Document</title>
<style type="text/css">
html, body
{
margin:0px;
padding:0px;
}
#pageholder
{
width:980px;
margin-left:auto;
margin-right:auto;
text-align:center;
border:solid 1px #000;
}
#header
{
width:978px;
height:120px;
border:solid 1px red;
text-align:center;
}
#navigation
{
width:200px;
height:720px;
margin:5px;
border:solid 1px cyan;
text-align:center;
}
#contents
{
width:700px;
height:720px;
margin:5px;
margin-left:270px;
margin-top:-724px;
border:solid 1px blue;
text-align:center;
}
#footer
{
width:970px;
height:50px;
border:solid 1px green;
text-align:center;
}
</style>
</head>
<body>
<div id="pageholder">
<div id="header">header</div>
<div id="navigation">navigation</div>
<div id="contents">contents</div>
<div id="footer">footer</div>
</div>
</body>
</html>