English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i cant get rid the scroll bars in my text area. even my text area is empty there is visible vertical scroll bar at the right side. please help

2007-02-16 17:23:39 · 3 answers · asked by bet.dimaranan 2 in Computers & Internet Programming & Design

3 answers

This is best accomplished with CSS (Cascading Style Sheets).

In your textarea tag, change it from what you have (which should look something like ) to this:



Where the ellipses represents whatever you've put inside those tags (as the default text or whatever).

You could also do this:



which would prevent a scrollbar from ever showing up.

For more information about the "overflow" property of elements, see http://htmldog.com/reference/cssproperties/overflow/

Note that CSS support varies from browser to browser. There is no standards-compliant attribute that eliminates a scrollbar from a textarea. Please read about the proper usage of CSS and about standards compliance at the links I've provided below.

2007-02-16 17:33:35 · answer #1 · answered by tark 3 · 0 0

The scrollbar is there automatically in textareas. I have an HTML tutorial at http://www.yuchniuk.com

2007-02-17 01:31:47 · answer #2 · answered by Yuchniuk Website Design 3 · 0 2

Set the CSS property "overflow" to "hidden".



You may also want to set the "wrap" HTML attribute to "soft" so the lines wrap at spaces.