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!

<pre> tags and displaying text into a table

Status
Not open for further replies.

eter4

MIS
Mar 13, 2001
30
CA
I have a form (textarea) that stores it's data into a sql server. Now this form uses <pre> tags. The problem is that I am not displaying the results in a textarea... I am displaying it in a table. If the users do not manually wrap their lines the table grows and usually they have one really long line.

We are all running IE 5.5 browsers and if I specift the <pre width=&quot;50&quot;> it still doesn't work.


Any ideas???

 
Hi eter4,

Maybe one of these examples may help you:

<td width=150 rowspan=3 height=50>
<div style=&quot;height:50px; overflow:auto&quot;>
Text1Text2 Text1Text2Text3Text4Text5Text6Text7 Text1Text2Text3Text4 Text1Text2Text3Text4Text5Text6Text7 Text1Text2 Text1Text2Text3 Text1Text2Text3Text4 Text1Text2Text3Text4Text5 Text1Text2Text3Text4Text5Text6
</div>
</td>

or instead of the <div>

<div style=&quot;width:150px; overflow:auto&quot;>

or

<div style=&quot;height:50px; width:150px; overflow:auto&quot;>

Do also some experimenting with:

overflow:hidden
overflow:scrol

Hope this helps,
Erik


<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top