Results 1 to 3 of 3

Thread: Placing PHP

  1. #1
    Join Date
    Jun 2005
    Location
    Canada
    Posts
    68
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Placing PHP

    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

  2. #2
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    Code:
    <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:
    Code:
    <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>
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  3. #3
    Join Date
    Jun 2005
    Location
    Canada
    Posts
    68
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •