Jump to content

Professional PHP problem...


complex05

Recommended Posts

yeah it's definitley an HTML problem haha, I have no problem with PHP :)

<TD valign="top" height="85" background="images/index_04.gif">
<IMG SRC="images/index_03.gif" WIDTH=223 HEIGHT=85 ALT=""></TD>
</TR>
<TR>
<TD WIDTH="223" background="images/index_04.gif" valign="top" height="100%">
<table width="100%" cellpadding="0" cellspacing="0" class="menu" height="100%">
<tr>
<td width="55"></td>
<td valign="top"><? include("menu.php"); ?><p></td>
</tr>
</table></TD>
</TR>
<tr>
<td colspan="2"><img src="images/bot.gif"></td>
</tr>
Link to comment
Share on other sites

is it where you include menu.php??  Make sure you have nothing but the text outputing. If you have and tables and such outputing you may have an issue with the formatting. Or you may need to start another table inside the column.

Ray
Link to comment
Share on other sites

This may fix it

[code]<TD valign="top" height="85" background="images/index_04.gif"><IMG SRC="images/index_03.gif" WIDTH=223 HEIGHT=85 ALT=""></TD>
<TD rowspan=2 valign=top><? include("menu.php"); ?></TD>

  </TR>
  <TR>
      <TD WIDTH="223" background="images/index_04.gif" valign="top" height="100%">
        <table width="100%" cellpadding="0" cellspacing="0" class="menu" height="100%">
</table>
</TD>
  </TR>
<tr>
<td colspan="2"><img src="images/bot.gif"></td>
</tr>[/code]

You should put your include in the first row, <tr>, then give it a rowspan of 2 there, other wise it will valign to the top but of the row below.

Ray
Link to comment
Share on other sites

Well it moved it up where you wanted it.  ;D
Point being you have to put your rowspan in the first row you want it to go in.

Just a simple example of the layout
[code]
<table border=1>
  <tr>
    <td>
      <table>
        <tr>
          <td>someinfoe here</td>
          <td>Some more stuff here</td>
        </tr>
      </table>
    </td>
    <td rowspan=2>how you doing</td>
  </tr>
  <tr>
    <td>More first row column stuff here</td>
  </tr>
  <tr>
    <td colspan=2 align=center>Footer stuff here maybe</td>
  </tr>
</table>[/code]

Ray
Link to comment
Share on other sites

That colspan="2" might come into play some where!!!

but MATE - the html!!! there is a closing html tag just after the form. Now I do not want to dive into this but you REALLY need to address this - get your structure sorted out - nest your code properly. This will REALLY help you identify problems.

Dare I suggest a move to tableless layout? there is so much html in there that is JUST for styling! this will make your page incredible slow to load.
Link to comment
Share on other sites

If I'm reading this right, you want the menu on the right...."Guests, Home, About Us" etc etc to be valigned to the top? Is so, why not put that menu in a nested table of it's own.....nested in one table cell, and make that tablle valigned to the top...kinda like this.....

[code]
<table border="0" cellpadding="0" cellspacing="0" width="770">
<tr>
<td> main contents and all your other stuff in here</td>
<td valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0">
      <tr>
          <td>Guests</td>
      </tr>     
        <tr>
          <td>Home</td>
      </tr>
      <tr>
          <td>About Us</td>
      </tr>
      </table></td>
    </tr>
</table>

[/code]

Hope that helps...or perhaps I'm way off base for what you want
Link to comment
Share on other sites

[quote]I can't have a tableless design... i need it to be graphical. Any other suggestions?[/quote]
Why on earth would a tableless layout stop you having a 'graphical'  layout?

I'll copy your code over in a minute and see if I can find the problem - will post back in a bit with your solution...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.