By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,676 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,676 IT Pros & Developers. It's quick & easy.

No horizontal scrollbar for textarea

P: n/a
Happy new year to you all,

I have a problem with the css settings for the horizontal scrollbar of
a textarea.

When I look at my textarea's in Internet Explorer (I use 5.5) I see
only a vertical scrollbar when the area contains a too long text. IE
wil just break off the text at the limit if a single word is too long
and put the next character on the next line. For me this is the desired
bahaviour (those horizontal scrollbars take too much space). Mozilla
makes both a horizontal and a vertical scrollbar. I tried to disable
this, but this did not have any effect.

My testpage looked as follows:

<html><head>
<STYLE type='text/css'>
textarea {overflow-x: hidden; overflow-y: scroll}
</STYLE>
</head>
<body>
<form>
<textarea rows=3 cols=20>
Thisisjustalotofuselesstext, meant to be too long for this very small
textbox.
</textarea>
</form>
</body></html>

How can I solve this?

Thanks, musicmouse

Jan 1 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
musicmouse wrote:

I have a problem with the css settings for the horizontal scrollbar of
a textarea.

textarea {overflow-x: hidden; overflow-y: scroll}


The standard property is overflow. overflow-x and overflow-y are
proprietary to IE.

The best you can do is overflow:auto. This may set one or both
scrollbars as needed, but there is no guarantee all browsers will give
the results you want. Live with it and move on.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jan 2 '06 #2

P: 1
overflow: scroll;
overflow-y: scroll;
overflow-x: hidden;
overflow:-moz-scrollbars-vertical;

This should fix your problem for firefox and internet explorer browsers.
Jul 24 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.