SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    730
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    textarea scroll not working

    I use css on the textarea. The text goes sideways instead of adding a scroll and go downwards:
    HTML Code:
    <textarea rows="9" cols="20" name="keyword1" id="keyword1" style="position: absolute; top: 60px; left: 0px; border-width: thick; border-color: #FF0000;width:190px; height: 100px; overflow-y: scroll; overflow-x: hidden; padding-left: 5px; padding-right: 5px; color: #FF0000; font-weight: bold;"></textarea>
    Compare bible texts (and other tools):
    TheWheelofGod

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why have you got overflow on a textarea? Textareas will automatically add scrollbars when the content is longer than the height or rows specified.

  3. #3
    SitePoint Guru
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    730
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok thanks that did it.
    Compare bible texts (and other tools):
    TheWheelofGod


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
  •