|
-
Jul 25th, 2001, 01:25 PM
#1
Thread Starter
Hyperactive Member
wrapping
I'm writing a forum system, and im trying to show a topic/thread, with all the posts listed down the page, like in any forum.
But, if someone writes a really long line in a post, without line breaks, then when i pull the text from the DB and put it in the page, the text of the post ends up as a reaaaly long line, so you have to scroll right in the browser (ugly). I need the text to wrap, like it does in these forums. I'm sure it's really simple, but i can't work it out 
code:
<td width=100%>
<p><font face="Verdana" size=2 color=#000000><%=RsTopic("postbody")%>
</font>
</p>
</td>
untidy, but it doesn;t paste well.
buzzwords are the language of fools
-
Jul 25th, 2001, 03:42 PM
#2
Frenzied Member
the problem is width=100%
put it fixed and it will be ok
-
Jul 25th, 2001, 09:00 PM
#3
Thread Starter
Hyperactive Member
thanks, but what do you mean?
buzzwords are the language of fools
-
Jul 25th, 2001, 09:04 PM
#4
Fanatic Member
change the width to a value other than a percentage.
width = "400"
-
Jul 26th, 2001, 11:42 AM
#5
Thread Starter
Hyperactive Member
hmm..i tried doing that:
<table border=0 cellPadding=1 cellSpacing=3 bordercolor=Black bordercolordark=Black width="600">
<tr>
<td bgcolor=#99ccff width="600">
<font face="Verdana" size=2 color=Black>
<%=RsTopic("postbody")%>
</font>
</td>
</tr>
</table>
but the row still keeps expanding, i know it's more than 600 cos i have a table directly above it which *is* 600, and that works fine.
The text just doesn't want to wrap!
testing (ignore):
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwwwww
buzzwords are the language of fools
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|