Log in

View Full Version : Placing PHP



Diversions
05-29-2008, 07:26 PM
As I move from the dreaded Front Page and force myself to do things right, I have a question for you.

I am placing a Navigation menu in a left column of a three column table using PHP and what I want to do is have the navigation locked in and aligned at the top of the column and, perhaps it is because I am new to this or I am just not looking for the right code in the W3C site but I am unable to solve this very basic issue.

Right now the code looks like this

<div align="center">
<center>
<table border="0" cellspacing="0" width="95%" cellpadding="2" id="AutoNumber2" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="28%"<?php include("navigate.php"); ?>
</td>
<td width="6%" bgcolor="#FF0000">&nbsp;</td>
<td width="66%">&nbsp;</td>

Could someone please give me a nudge?

Thank you
D

Master_script_maker
05-29-2008, 07:53 PM
<div align="center">
<center>
<table border="0" cellspacing="0" width="95%" cellpadding="2" id="AutoNumber2" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="28%"<?php include("navigate.php"); ?>
</td>
<td width="6%" bgcolor="#FF0000">&nbsp;</td>
<td width="66%">&nbsp;</td>
should be:

<div align="center">
<center>
<table border="0" cellspacing="0" width="95%" cellpadding="2" id="AutoNumber2" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="28%"><?php include("navigate.php"); ?>
</td>
<td width="6%" bgcolor="#FF0000">&nbsp;</td>
<td width="66%">&nbsp;</td>
also, if this is all there should be an </tr>, </table> and </div>

Diversions
05-29-2008, 08:06 PM
The additional coding is on the page - I thought it would save time by omitting it.
I have made the correction to the code but I still need to know if it is possible to have the php file ALWAYS aligned to the top of the table. I have tried adding align top in different places but it makes no difference on the wamp server

Thanks