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

Limit width of msg...

Status
Not open for further replies.
May 9, 2000
446
GB
Hi, i made a guestbook a while back andeverything was working fine until the other day. Basically I've re-made the view messages page but the field holding the msg grows beyond the width of the screen. It didn't do this before! how do i stop the text going of the edge of the window?? The code (a part of anyway) i'm using is below:

</td>
<td width=&quot;84%&quot;><font size=&quot;-1&quot;><%=(Recordset1.Fields.Item(&quot;Message&quot;).Value)%></font></td>
</tr>


Cheers
 
Don't know if you know this already but you can reduce
<%=(Recordset1.Fields.Item(&quot;Message&quot;).Value)%> to
<%=Recordset1(&quot;Message&quot;)%>

This can save a lot of typing when there are a lot of fields!!

As for your formatting problem... it looks to me like your problem is in a piece of code you haven't posted. If your <td width=&quot;84%&quot;> column is embedded in a table with say 200% for example, then the <td> column will be 168% of the screen, and you would have to scroll horizontally.

You might need to post the rest of your html to get help on this. Brett Birkett B.Comp
Systems Analyst
 
Hey BBirket, cheers for the response. I knew about that coding issue but I'm using Ultradev (partly) and it seems to use the longer method (it does make a load of code longer than it needs to be). Anyway yeah i checked out the table percentages and they looked okay, oh well I'll go have another look, wouldn't be the first time I've been looking straight past the problem!

Cheers again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top