complex05 Posted December 11, 2006 Share Posted December 11, 2006 Hello,This is probably the newbiest question you've ever heard... but please view this pagehttp://pcc417.com/nexus/weather_xml.php?id=CAXX0504I can't get the right menu to valign properly... does anyone see the problem?! Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted December 11, 2006 Share Posted December 11, 2006 This doesn't sound like a PHP problem. It sounds like a design problem with either your HTML or CSS.Source code?Ken Quote Link to comment Share on other sites More sharing options...
complex05 Posted December 11, 2006 Author Share Posted December 11, 2006 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> Quote Link to comment Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 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 Quote Link to comment Share on other sites More sharing options...
complex05 Posted December 11, 2006 Author Share Posted December 11, 2006 no tables outputting, just links. Quote Link to comment Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 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 Quote Link to comment Share on other sites More sharing options...
complex05 Posted December 11, 2006 Author Share Posted December 11, 2006 not quite :)http://pcc417.com/nexus/weather_xml.php?id=CAXX0504 Quote Link to comment Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 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 Quote Link to comment Share on other sites More sharing options...
complex05 Posted December 11, 2006 Author Share Posted December 11, 2006 I actually can't have it there because that curve is an image that needs to be there; the menu needs to start below it. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted December 11, 2006 Share Posted December 11, 2006 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. Quote Link to comment Share on other sites More sharing options...
complex05 Posted December 11, 2006 Author Share Posted December 11, 2006 I can't have a tableless design... i need it to be graphical. Any other suggestions? Quote Link to comment Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 only way I could help is if you post the code for the entire page. Need some before and after code.Ray Quote Link to comment Share on other sites More sharing options...
realjumper Posted December 11, 2006 Share Posted December 11, 2006 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 Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted December 11, 2006 Share Posted December 11, 2006 [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... Quote Link to comment Share on other sites More sharing options...
jsladek Posted December 12, 2006 Share Posted December 12, 2006 Get rid of the [code]</TD><TD rowspan=2 valign=top[/code]right after the [code]<IMG SRC="images/index_03.gif" WIDTH=223 HEIGHT=85 ALT="">[/code]and see what that does for you-John Quote Link to comment 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.