kvnirvana Posted October 26, 2010 Share Posted October 26, 2010 Any idea why I can't see the footer on my index page? this is index.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <TITLE>Seare</TITLE> <script language="JavaScript">function parentTop(){ parent.window.location.hash = '#top';}</script> <script language="JavaScript"> <!-- function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height; } //--> </script> <style type="text/css"> #nav-menu ul p { font-family: verdana ; } p { font-size: 20px; } { list-style: none; padding: 0; margin: 0; } #nav-menu li { float: left; margin: 0 0.15em; } #nav-menu li a { height: 2em; line-height: 2em; float: left; width: 10em; display: block; color: #000000; text-decoration: none; text-align: center; border-bottom: 1px solid white; } /* Hide from IE5-Mac \*/ #nav-menu li a { float: none } /* End hide */ #nav-menu { width:90em } </style> </HEAD> <BODY > <p id="start"></p> <DIV style="position:absolute;left:0px;top:0px;width:100%;height:100%;z-index:1" align="left"> <TABLE width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <img src="seare.jpg" width="1259" height="170" /> </TABLE></DIV> <div id="nav-menu" style="position:absolute;center:0px;top:143px;width:100%;height:100%;z-index:1" align="left"> <ul> <li><a href="fode.php" target="kasp"><p>Fode</p></a></li> <li><a href="sg.php" target="kasp"><p>Sing</p></a></li> <li><a href="bed.php" target="kasp"><p>Bed</p></a></li> <li><a href="orog.php" target="kasp"><p>Orog</p></a></li> <li><a href="/wordpress/" target="kasp"><p>Blog</p></a></li> <li><a href="tilannce.php" target="kasp"><p>Til annoer</p></a></li> <li><A href="takt.php" target="kasp"><p>takt</p></a></li> </ul> </div> <DIV style="position:absolute;center:0px;top:165px;width:100%;height:100%;z-index:1" align="left"><TABLE width="100%" height="100%" border="0" cellpadding="0" cellspacing="1"><TR><TD align="left" valign="top" width="100%" height="40"><FONT style="font-size:16px" color="#000000" face="Arial"><B><hr></B></FONT></TD></TR></TABLE></DIV> <iframe width="100%" id="the_iframe" name="kasp" onLoad="calcHeight();" style="position:absolute;center:1px;top:175px;z-index:1" src="forside.php" scrolling="NO" frameborder="0" height="1"> iframe capable browser is required to view this web site.</iframe> </BODY> </HTML> <?php include 'footer.php'; ?> This is footer.php <hr> <small>Copyright 2008 My Site</small><br> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/216886-cant-see-footer/ Share on other sites More sharing options...
BlueSkyIS Posted October 26, 2010 Share Posted October 26, 2010 because it is after the body and html tags. remove them. </BODY> </HTML> <?php include 'footer.php'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/216886-cant-see-footer/#findComment-1126677 Share on other sites More sharing options...
kvnirvana Posted October 26, 2010 Author Share Posted October 26, 2010 I removed the tags, but I still can't see the footer! Quote Link to comment https://forums.phpfreaks.com/topic/216886-cant-see-footer/#findComment-1126683 Share on other sites More sharing options...
AbraCadaver Posted October 26, 2010 Share Posted October 26, 2010 I removed the tags, but I still can't see the footer! You're using absolute positioning for the div and iframe. Maybe something is covering it? Quote Link to comment https://forums.phpfreaks.com/topic/216886-cant-see-footer/#findComment-1126685 Share on other sites More sharing options...
PFMaBiSmAd Posted October 26, 2010 Share Posted October 26, 2010 What does the 'view source' of the index.php page in your browser show for that part of the page? Quote Link to comment https://forums.phpfreaks.com/topic/216886-cant-see-footer/#findComment-1126686 Share on other sites More sharing options...
kvnirvana Posted October 26, 2010 Author Share Posted October 26, 2010 view source shows this <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>Title here!</title> </head> <body> <!-- Table markup--> <table id="forside" CELLSPACING=10> <!-- Table header --> <thead> <tr> <th scope="col" id="..."></th> </tr> </thead> <!-- Table footer --> <tfoot> <tr> <td></td> </tr> </tfoot> <!-- Table body --> <tbody> <tr> <td id="image" BACKGROUND="forsideny.jpg" width="900" height="600"></td> <td id="tdimage" BACKGROUND="forside1.jpg" width="290" height="600"></td> </tr> </tbody> </table> If I use fixed instead of absolute it shows the footer, but then the page is messed up Quote Link to comment https://forums.phpfreaks.com/topic/216886-cant-see-footer/#findComment-1126704 Share on other sites More sharing options...
PFMaBiSmAd Posted October 26, 2010 Share Posted October 26, 2010 The view source you just post has nothing to do with the code you have posted. About all we can tell from the information supplied is that you are not even on a server with php installed. Quote Link to comment https://forums.phpfreaks.com/topic/216886-cant-see-footer/#findComment-1126736 Share on other sites More sharing options...
kvnirvana Posted October 26, 2010 Author Share Posted October 26, 2010 the view source is from the page forside.php which opens in the iframe on the index page. The page is not on any server, because I use easy php to view it Quote Link to comment https://forums.phpfreaks.com/topic/216886-cant-see-footer/#findComment-1126756 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.