nebulas4 Posted January 22, 2009 Share Posted January 22, 2009 I want to put my boxes side by side? but all I can seem to do is have them under each other always. heres the code? <div align="center"><? echo '<title>'.$site_title.' - Home</title> <table width="80%" > <tr valign="center"><div align="center"> <td class="windowbg" width="100%"> <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table> <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table> <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table><div align="center"><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr valign="center"> <td class="windowbg" width="100%"> <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table> </td> </tr> </table>'; ?> Quote Link to comment Share on other sites More sharing options...
dvd420 Posted January 22, 2009 Share Posted January 22, 2009 Simply use tables... Quote Link to comment Share on other sites More sharing options...
nebulas4 Posted January 22, 2009 Author Share Posted January 22, 2009 idiot, i am here asking for help not just use tables... clearly you dont know and your just bluffing, anyone else who can actually help? Quote Link to comment Share on other sites More sharing options...
zesoft.net Posted January 22, 2009 Share Posted January 22, 2009 hi there I tried 2 solve ur problem but ur code isnt clear so pls post the code again Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted January 22, 2009 Share Posted January 22, 2009 Even if someones attempt to help wasn't useful I do not think that calling that person idiot is very appropriate. Besides that you will find that others will be less willingly to help you out. If you're having trouble with your layout try posting the browsers source instead. the layout is html and css related and totally not php related since the browser will never see a piece of php code. Also have you tried to use the float option in css? Quote Link to comment Share on other sites More sharing options...
haku Posted January 22, 2009 Share Posted January 22, 2009 Even though dvd420's advice wasn't actually that good (shouldn't use tables except for tabular data), nor that helpful, the response to it was rude. I could help, but I'm not going to bother. What if I were wrong? Do I get balled out as well? Asking for free help then getting angry when you don't like it about as rude as it gets. Quote Link to comment Share on other sites More sharing options...
landavia Posted January 23, 2009 Share Posted January 23, 2009 hi there I tried 2 solve ur problem but ur code isnt clear so pls post the code again <div align="center"><?php echo '<title>'.$site_title.' - Home</title> <table width="80%" > <tr valign="center"><div align="center"> <td class="windowbg" width="100%"> <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table> <table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table> <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table><div align="center"><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr valign="center"> <td class="windowbg" width="100%"> <center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border"> <tr> <td class="windowbg4"><center><img src="ico/sub10.gif"> <b>title here</b></td> </tr><tr> <td class="windowbg3"> <form action="index.php?action=login&sub=1" method="post"> <table width="100%" cellspacing="1" cellpadding="4" border="0"> <td class="windowbg" colspan="2"><br><br><center><font size="4" color="white"><b>text here</b></font></a><br><br>Server will be up in a few days 21 Jan 09.<br> </table> </form> </td> </tr><tr> <td class="windowbg3"><center><a href=http://www.mylink.com><b>Here</b></a> </tr> </table> </td> </tr> </table>'; ?> what a waste of time.. i don't want to answer too let's solve this and lock the topic.. 1 think i should say to TS.. i believe.. to many table HERE.. and You confuse for you own table?!!! let's change subject.. instead using table <table> <tr> <td>block 1</td> <td>block 2</td> <td>block 3</td> </tr> </table> i have same problem and want to use div <div> <div>Block 1</div> <div>Block 2</div> <div>Block 3</div> </div> *i was see in wikipedia.. they only use DIV!!! 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.