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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text not wraping

Status
Not open for further replies.

Ragol1

Programmer
Oct 25, 2001
315
US
I use this to disply to from a Db but if the text is longer than the table it does not wrap..
please help..


<TABLE BORDER=&quot;0&quot; BORDERCOLOR=&quot;#000000&quot; BORDERCOLORLIGHT=&quot;#CCCCCC&quot; BORDERCOLORDARK=&quot;#000000&quot; BGCOLOR=&quot;#0066FF&quot; CELLSPACING=&quot;1&quot;>
<%
While rs1.EOF = false
%><TR><TD><FONT SIZE=&quot;2&quot;><%=rs1.fields(&quot;db_Event&quot;)%></FONT></TD><TD><FONT SIZE=&quot;2&quot;><%=rs1.fields(&quot;db_date&quot;)%></FONT></TD></TR>
<%
rs1.MoveNext
WEND
%> </TABLE>
 
One way to handle this is to think of a number, any number, then concatenate in <br>'s every n characters. Another way is to specify the width and wrapping of the <td> tag using CSS.
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Try setting a size to your columns, like so:

Code:
<TD size=&quot;80%&quot;>

To err is human, but to really foul things up requires a computer.
- Farmers' Almanac, 1978

 
Oops, should have been:

Code:
<TD width=&quot;80%&quot;>
To err is human, but to really foul things up requires a computer.
- Farmers' Almanac, 1978

 
i also read that Netscape's versions pre 6.0 had a problem with wraping, if you are viewing in NS4.x you may be a victim of this bug, there is a fix though in Javascript. it is for the whole page not wrapping, but maybe it is helpful
---------------------------------------------------------

<script language=&quot;JavaScript&quot;>
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName==&quot;Netscape&quot;)&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top