This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > February 2004 > textarea scrollbars





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author textarea scrollbars
Max

2004-02-26, 3:31 pm

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

thanks

Max


Steve Pugh

2004-02-26, 4:30 pm

"Max" <max@gallonline.com> wrote:

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


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/>
Andrew Thompson

2004-02-26, 4:30 pm

On Thu, 26 Feb 2004 19:31:46 -0000, Max wrote:

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


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
Karl Smith

2004-02-26, 9:31 pm

"Max" <max@gallonline.com> wrote:

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


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?
Andrew Urquhart

2004-02-26, 9:31 pm

"Karl Smith" <google-2003-03@kjsmith.com> wrote in message
news:3d18d2.0402261652.71054dfe@posting.google.com...
> "Max" <max@gallonline.com> wrote:
>
by[color=darkred]
>
> 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?


He explained in comp.lang.java script:
http://groups.google.co.uk/groups?s...7%40newsfe1-win

Max <Byp%b.563$jg7.477@newsfe1-win> wrote:
> 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.


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: www.andrewu.co.uk/about/contact/?subject=Re%3A+ciwas


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews