Jump to content

question about class


nebulas4

Recommended Posts

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>';

?>

Link to comment
https://forums.phpfreaks.com/topic/141945-question-about-class/
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/141945-question-about-class/#findComment-743390
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/141945-question-about-class/#findComment-743812
Share on other sites

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!!!

Link to comment
https://forums.phpfreaks.com/topic/141945-question-about-class/#findComment-743884
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.