View Full Version : No Scrollbars in textarea?


Mike
08-25-2003, 03:03 AM
How do I get 'em? What's the code using css? I can't just make them the same as the background color.

Alcy
08-25-2003, 05:09 AM
You can specify a width and height for the textarea, but it'll automatically scroll when the content exceed the width or height....

<style type="text/css">
textarea
{
width:#px;
height:#px;
}
</style>

Mike
08-25-2003, 03:04 PM
Originally posted by Alcy
You can specify a width and height for the textarea, but it'll automatically scroll when the content exceed the width or height....

<style type="text/css">
textarea
{
width:#px;
height:#px;
}
</style>

Thats exactly what I put!

Alcy
08-26-2003, 04:12 AM
Then it'll scroll whenever the content exceeds the height.

What were you asking about the background colour?

druza
08-26-2003, 04:33 PM
I'm not sure if it'll work 'cause it's a property that's usually used for divs but maybe you should try adding overflow:auto to your style. Then, the scrollbar would only appear if it needs to.

If you really want no scrollbar, then it's overflow:none