Jump to content

Question about text wrap


ds111

Recommended Posts

if anyone wants simplified code (w/o PHP), here it is:

 

<table cellspacing="0" cellpadding="0" border="1">
<tr>
   <td width:100px><div>1234567890123456</div></td>
   <td width:100px><div>1234567890123456</div></td>
</tr>
<tr>
   <td width:100px><div>a</div></td>
   <td width:100px><div>b</div></td>
</tr>
<tr>
   <td width:30px><div style="nowrap;overflow:scroll">WWWWWWWWWWWWWWW2</div></td>
   <td width:100px><div>b</div></td>
</tr>

</table>

 

 

I want Column 1 and Column 2 to be the same size of 100px, and so that WWWWWWWW...2 should be cut to fit in.

here you go

<table cellspacing="0" cellpadding="0" border="1">
<tr>
   <td style="width:100px;"><div>a</div></td>
   <td style="width:100px;"><div>b</div></td>
</tr>
<tr>
   <td style="width:100px;"><div>a</div></td>
   <td style="width:100px;"><div>b</div></td>
</tr>
<tr>
   <td style="max-width:100px;overflow:hidden;"><div>abcdefghijklmnopqrstuvwxyz</div></td>
   <td style="width:100px;"><div>b</div></td>
</tr>

</table>

that will work i had the right idea like i said my head was in a grog yesterday

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.