SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2004
    Location
    sssss
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scrollbar arrow should be always active

    Hi all,
    I AM doing some webpage designing and I am struck at some point.
    I need to use some textarea field in my form,and that requires my scrollbar arrow to be always active,irrespective of how many lines that have entered in the
    textarea.

    I understand that as of now my textarea scrollbar arrow becomes active only the number the lines exceeds the number that I specified as textare property.But I
    wanted it to be active always.

    Any help would be greatly appreciated.

    Saravanan

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    This works, but only in Mozilla. IE and Opera don't seem to like it:
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>textarea?</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
    <style type="text/css">
    <!--
    textarea {
      overflow: scroll;
    }
    -->
    </style>
    </head>
    
    <body>
    <div>
    <form>
    <div>
    <textarea name="mytext" rows="4" cols="20"></textarea>
    </div>
    </form>
    </div>
    
    </body>
    </html>


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
  •