Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

column width in a table

Status
Not open for further replies.

shultz

Programmer
Oct 28, 2001
42
HK
From the database I pick up some values and show it in a table. All the values are getting displayed properly. Of those fields I have one field which contains the network path of a certain file like this :

\\cdtower\share\GPRS\V12.4C\v12_4c_fix_CSR.xls

There are certain entries which are even bigger than this. I want to fix the width of this column to 10% of the screen. But it's not happening. Even I tried to create a dummy jpg file and span it to certain percentage. Where as all the remaining columns are getting adjusted by the width="10%" specifications, this particular column expands to the largest string size. How can I ensure that this column expands to the required width.

<tr>
<td><img src=&quot;images/forTable.gif&quot; width=&quot;<%=7*colWidth%>&quot; height=&quot;1&quot;></td>
<td><img src=&quot;images/forTable.gif&quot; width=&quot;<%=10*colWidth%>&quot; height=&quot;1&quot;></td>
<td><img src=&quot;images/forTable.gif&quot; width=&quot;<%=10*colWidth%>&quot; height=&quot;1&quot;></td>
<td><img src=&quot;images/forTable.gif&quot; width=&quot;<%=10*colWidth%>&quot; height=&quot;1&quot;></td>
<td><img src=&quot;images/forTable.gif&quot; width=&quot;<%=33*colWidth%>&quot; height=&quot;1&quot;></td>
<td><img src=&quot;images/forTable.gif&quot; width=&quot;<%=30*colWidth%>&quot; height=&quot;1&quot;></td>
</tr>

where - > colWidth = Session(&quot;screenWidth&quot;)/100

and the code after that is

sText=sText & &quot;<tr bgColor=&quot; & bgColor & &quot;>&quot;
sText=sText & &quot;<td>&quot; & fFont2 & &quot;<b><a href='newEvent.asp?ID=&quot; & ID & &quot;&action=1' class='active'>&quot; & _
eventDate1 & &quot;</a></b></font></td>&quot;
sText=sText & &quot;<td>&quot; & fFont2 & eventType1 & &quot;</font></td>&quot;
sText=sText & &quot;<td>&quot; & fFont2 & subSystem1 & &quot;</font></td>&quot;
sText=sText & &quot;<td>&quot; & fFont2 & link & &quot;</font></td>&quot;
sText=sText & &quot;<td>&quot; & fFont2 & description1 & &quot;</font></td>&quot;
sText=sText & &quot;<td>&quot; & fFont2 & remarks1 & &quot;</font></td></tr>&quot;

thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top