Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    83
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Only vertical overflow

    Here's the problem:

    I'm trying to create a little 'chat box', and the actual content box is scrolling horizontally; which I don't want. I want the box to ONLY scroll for content vertically, and for the horizontal content to simply go to the next line when it reaches the end of the current line.

    Any ideas?

    Page: http://neo-moon.com/Chat.php

  • #2
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,179
    Thanks
    174
    Thanked 257 Times in 257 Posts
    try placing a <p> tag between the content and setting a width to it so it wont continue going to the right.

    Code:
    p {
    width:480px;
    padding:5px;
    }

    see if that helps!

  • #3
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    It will do that if you have a continuous stream of letters with no spaces. Try putting spaces in and see what happens.

  • #4
    New Coder
    Join Date
    Aug 2007
    Posts
    83
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Thank ya.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •