J
Joe Reynolds
this is kinda off topic, but not totally.
i have an ASP page that pulls text from a database, stores it in a variable,
then uses <%= variable %> to write the text inside an html table. the
problem im having has to do with wrapping. if the line of text is longer
than the table (or column) is wide, then the whole table is blown apart and
grows to fit the data. i was hoping for an easy way to fix this with CSS but
the only thing i can find that works is the wordwrap tag that ONLY IE
supports! so unless someone here knows how i can deal with this in css/html,
i will have to look at the Len() of the string and if its over a certain
amount of characters ill have to insert a <br> at every Nth character. does
anyone have any ideas? my table might look like this:
<table width="500+>
<tr>
<td width="250">this is the text im concerned with</td>
<td></td>
</tr>
</table>
i want that <td> to stay at 250 wide no matter what! does anyone know how to
do this in css? and if not, can someone show me how i might insert <br>'s
into my string at every 20th character or so?
thanks
i have an ASP page that pulls text from a database, stores it in a variable,
then uses <%= variable %> to write the text inside an html table. the
problem im having has to do with wrapping. if the line of text is longer
than the table (or column) is wide, then the whole table is blown apart and
grows to fit the data. i was hoping for an easy way to fix this with CSS but
the only thing i can find that works is the wordwrap tag that ONLY IE
supports! so unless someone here knows how i can deal with this in css/html,
i will have to look at the Len() of the string and if its over a certain
amount of characters ill have to insert a <br> at every Nth character. does
anyone have any ideas? my table might look like this:
<table width="500+>
<tr>
<td width="250">this is the text im concerned with</td>
<td></td>
</tr>
</table>
i want that <td> to stay at 250 wide no matter what! does anyone know how to
do this in css? and if not, can someone show me how i might insert <br>'s
into my string at every 20th character or so?
thanks