I have an index.php page, loading many <div>'s and then tables inside the <div>'s. Now everything is good until I load a main page that has a lot of info; it tends to just simpley go right under my footer include() and continue down, and looks really bad. Now I tried just placing the </div> after the footer, but then the footer is not placed correctly. Oh and the reason why the main page gets longer sometimes is due to database queries. Okay, so I had some ideas:
I tried setting div height; no luck.
also tried table height; no luck.
Thought I had seen some inline type scroll bars, maybe in JS, but can't find the code now.
Maybe I need to set some div's with heights in EACH included page, but that would take forever!
this is my index.php page, a bit dumbed down since some of it is repeating:
<?php
ob_start();
?>
<html><head>
<link href="scripts/overpage1.css" rel="stylesheet" type="text/css">
</head><title>PreReleaseParty.com</title></html>
<DIV style="position: absolute; top:-5px; left:40px; width:0px;
height:60; visibility: visible;" id="logotop">
<table width="600" border="0" class="tableTop1">
<tr>
<td>
<?php
echo '<a href="index.php?page=addmovie">Add Movie</a> || ';
echo '<a href="index.php?page=reviewindex">Reviews</a> || ';
echo '<a href="index.php?page=moviegenerate">Movie Generate</a> || ';
include ("logotop.php");
?>
</td>
</tr>
</table>
</div>
<DIV style="position: absolute; top:70px; left:50px; width:0px;
height:20; visibility: visible;" id="statustop">
<table width="685" border="0" class="tableTop1">
<tr>
<td>
<?php
include ('statustop.php');
?>
</tr>
</td>
</table>
</div>
<DIV style="position: absolute; top:150px; left:50px; width:0px;
height:20; visibility: visible;" id="topnav">
<table width="685" border="0" class="tableTop1">
<tr>
<td>
<?php
include ('topnav.php');
?>
</tr></td></table></div>
<DIV style="position: absolute; top:180px; left:245px; width:0px;
height:0; visibility: visible;" id="main page bg">
<table width="500" border="0" class="tableTop1" height="500">
<tr><td>
<?php include ( $_SERVER['DOCUMENT_ROOT'] . 'prp/blank.htm'); ?>
</td></tr></table></div>
<DIV style="position: absolute; top:180px; left:245px; width:0px;
height:0; visibility: visible;" id="main page">
<table width="500" border="0" class="tableTop1" height="0">
<tr>
<td>
<?php
if ( isset( $_GET['page'] ) )
{
switch( $_GET['page'] )
{
case 'moviegenerate';
include( $_SERVER['DOCUMENT_ROOT'] . 'prp/moviegenerate.php' );
break;
//a lot of includes()
default:
/* Some Default Page To Show */
include( $_SERVER['DOCUMENT_ROOT'] . 'prp/news.php' );
break;
}
}
else
{
include( $_SERVER['DOCUMENT_ROOT'] . 'prp/news.php' );
}
?>
</td></tr></table></div>
<DIV style="position: absolute; top:690px; left:40px; width:0px;
height:0; visibility: visible;" id="footer">
<table width="705" border="0" class="tableTop1" height="10">
<tr><td>
<?php include ( $_SERVER['DOCUMENT_ROOT'] . 'prp/footer.htm'); ?>
</td></tr></table></div>
does anyone see the problem or know what to do? any help would be great.