SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    vertical scroll bars

    I am trying to get some text to auto scroll after 3 lines of text in a div, how would I get this done. I tried using overflow:auto but that only gives me a horizontal scroll which I don't want. I tried setting max characters using max-width but that doesn't work with IE.

    What I am doing is taking text from a textbox and putting it in a div.

  2. #2
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Set a height in ems.

    #selector {
    height:3em;
    overflow-y:auto;
    overflow-x:hidden;
    }

  3. #3
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried that it didn't work. Thanks anyway.


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
  •