Kr0nZ Posted February 14, 2011 Share Posted February 14, 2011 Hi i am fairly new to php and seem to be having a problem using <php includes> This problem had boggled me for the last few hours now and finally came to try and seek help what i am trying to do is have a php index page that imports my header, footer, navbar and main content from other php files this is the code i am using: <body> <div class="indexcontainer"> <?php include('header.php'); ?> <table width="900" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="26" background="images/index20.jpg" > </td> <td width="162"><?php include('lsidebar.php'); ?></td> <td><?php include('content.php'); ?></td> </tr> </table> <?php include('footer.php'); ?> </div> </body> this doesnt display the way i want instead of 'images/index20.jpg' 'lsidebar.php' and 'content.php' appearing in the table under the header, images/index20.jpg takes up more space that i set, i set it to 26, it really takes up 123, and it pushes my content.php of the page i guess(i dont know how to fix this) :confused: images/index20.jpg- is a border image that i need to extend down to the bottom of page but above the footer, i had this working before but i had the border image included in with the navbar.php file, but it wouldnt extend to bottom of page im probably doing this wrong way, i hope someone can point me in the right direction Link to comment https://forums.phpfreaks.com/topic/227595-problem-laying-out-php-includes/ Share on other sites More sharing options...
trq Posted February 14, 2011 Share Posted February 14, 2011 This is really a html issue, not php. Have a look at your actual outputted html source and make sure it validates and is what you expect. Link to comment https://forums.phpfreaks.com/topic/227595-problem-laying-out-php-includes/#findComment-1173906 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.