DEVPPL
http://www.devppl.com/forum/

How to fixed the width of a <td> and also
http://www.devppl.com/forum/viewtopic.php?f=51&t=13597
Page 1 of 1

Author:  jeaddy [ Thu May 21, 2009 3:09 am ]
Post subject:  How to fixed the width of a <td> and also

Hi

Could someone let me know how I could fixed ( limited ) the width and length of <td> and also if someone posted a long paragraph to that data that it will not expand but will have the info posted going on the 2nd line, 3rd line, etc.

here is an example of my code, it includes PHP

Code:
<table border =1 align=center width=80%>
   <tr><td bgcolor =PaleGoldenRod colspan=4>
   SSSSSSSSSSS<br><br>
   </td>

   <tr><td> info 1</td>
   <td> info2</td>
   <td> info3</td>
   <td> info4</td></tr>";

   while($info = mysql_fetch_array($data_p))
      {//=========================================================================
      $photo_row =$photo_row+1;

      if($photo_row==1){//------------------------------------------
         $photo_row=0;
      }//---------------------------------------------------------
      print"<tr><td> <div> $info[id]. <font size=2 color=gray> $info[date]</font></div></td>";
                 
      echo "<td bgcolor =PaleGoldenRod width=30% >
      <a href='$dir".$info[trim(name)]."'>".$info[trim(name)]."</a><br>
      </td>

      <td>
      $info[COMMENT]
      </td>

      <td>
      4
      </td>
      </tr>";
   




      if($photo_row==1){//--------------------------------------------------
         $photo_row=0;
      }//----------------------------------------------------------------

   }//===========================================================================
}

print"</td></tr></table>";



now how do I set the width limited to info1, and info2 set it's width and height limited and then be able to scroll when too much info is in there. I tried your example and it doesn't work.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/