SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Div overflow, scroll question

    Hi, I have the style "overflow: scroll" on a div. I don't want it to scroll to the right though. Can I take the bottom scroll bar off, but have the content break to the next line, so it's not lost.

    Kind of like a "virtual" textbox.

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    If I understand what you are saying you want to get rid of the horizontal scrollbar, if so try:
    Code:
    overflow: auto;
    If I have misunderstood please ask again

  3. #3
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, that's what I meant, although auto only shows up once it begins to overflow. I was hoping to make it almost exactly like a virtual textbox. Is it not possible?

  4. #4
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    If you mean a vertical scrollbar no matter if it is needed or not, I am not sure how to do that.


Bookmarks

Posting Permissions

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