Results 1 to 5 of 5

Thread: wrapping

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    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

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    the problem is width=100%

    put it fixed and it will be ok

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    thanks, but what do you mean?
    buzzwords are the language of fools

  4. #4
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    change the width to a value other than a percentage.

    width = "400"
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    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
  •  



Click Here to Expand Forum to Full Width