News

Log In Sponsors
Partner Sites
saffron spices

looking for cheap international calling cards at PhoneCardsAvenues.com



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:1i2ghskn] <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>";[/code:1i2ghskn] 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.

Click here to read the whole forum topic