textarea scrollbars

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Max

    textarea scrollbars

    How can I disable scrollbars in a textarea. They seem to be enabled by
    default.

    thanks

    Max


  • Steve Pugh

    #2
    Re: textarea scrollbars

    "Max" <max@gallonline .com> wrote:
    [color=blue]
    >How can I disable scrollbars in a textarea. They seem to be enabled by
    >default.[/color]

    overflow: hidden;

    But what happens when the user enters more text than will fit in the
    box? Although possible (at least in some browsers) it is now more
    difficult for them to move around within their entry to review or edit
    it.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

    Comment

    • Andrew Thompson

      #3
      Re: textarea scrollbars

      On Thu, 26 Feb 2004 19:31:46 -0000, Max wrote:
      [color=blue]
      > How can I disable scrollbars in a textarea. They seem to be enabled by
      > default.[/color]

      Stand beside the user with a gun and say
      "Stop typing, or I shoot"?

      --
      Andrew Thompson
      * http://www.PhySci.org/ Open-source software suite
      * http://www.PhySci.org/codes/ Web & IT Help
      * http://www.1point1C.org/ Science & Technology

      Comment

      • Karl Smith

        #4
        Re: textarea scrollbars

        "Max" <max@gallonline .com> wrote:
        [color=blue]
        > How can I disable scrollbars in a textarea. They seem to be enabled by
        > default.[/color]

        With the 'overflow' property, set to 'hidden' or 'auto'?

        Value: visible | hidden | scroll | auto | inherit
        Applies to: block-level and replaced elements
        Inherited: no

        Why would you want to do such a thing?

        Comment

        • Andrew Urquhart

          #5
          Re: textarea scrollbars

          "Karl Smith" <google-2003-03@kjsmith.com> wrote in message
          news:3d18d2.040 2261652.71054df e@posting.googl e.com...[color=blue]
          > "Max" <max@gallonline .com> wrote:
          >[color=green]
          > > How can I disable scrollbars in a textarea. They seem to be enabled[/color][/color]
          by[color=blue][color=green]
          > > default.[/color]
          >
          > With the 'overflow' property, set to 'hidden' or 'auto'?
          >
          > Value: visible | hidden | scroll | auto | inherit
          > Applies to: block-level and replaced elements
          > Inherited: no
          >
          > Why would you want to do such a thing?[/color]

          He explained in comp.lang.javas cript:


          Max <Byp%b.563$jg7. 477@newsfe1-win> wrote:[color=blue]
          > I have used a textarea to display typewriter effect text. The
          > scrollbars are displayed by default.
          > What is the code to disable the scrollbars in a textarea
          > form field? < scrolling="no"> does not seem to work.[/color]

          If he really *has* to implement such a thing he'd be better off
          implementing it as follows:

          Markup:
          <p id="typewriter" >This is the text content to type out</p>

          Then using a self-contained external script with an onload event
          defined, pick up the paragraph element via the id, remove the text, then
          'type' it out back into the element using CSS to style. This way it
          remains accessible and semantic and only annoys those that have
          javascript enabled :o)
          --
          Andrew Urquhart
          Reply: https://www.andrewu.co.uk/about/cont...ct=Re%3A+ciwas


          Comment

          Working...