It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

How to fixed the width of a <td> and also

How to fixed the width of a <td> and also

Postby jeaddy on Thu May 21, 2009 2:09 am

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: Select all
<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.
jeaddy
 
Posts: 24
Joined: Thu Dec 20, 2007 12:35 am

Who is online

Users browsing this forum: No registered users and 3 guests