Page 1 of 1

Textarea scrollbar

Posted: Sun Jun 01, 2008 4:31 am
by highjo
Hi! propbably i shouldn't be asking this tips but i' don't know why what seems obviuos to me is not working.
I just want my textarea not to have an horizontal scrollbar.The wrap attribute was the obvious option for me and is not doing it.So i just want to ask how do you guys do that.A typical examle is this textarea where i'm typing this message.it doesn't have an horizontal scrollbar.Please let me know thank you

Re: Textarea scrollbar

Posted: Sun Jun 01, 2008 4:35 am
by vargadanis
Set the "cols" attribute of the textarea to XY. It will do it unless MS IE. For that u need to do CSS: overflow-x:hidden;

Code: Select all

<textarea style="overflow-x: hidden;"></textarea>

Re: Textarea scrollbar

Posted: Sun Jun 01, 2008 4:44 am
by highjo
thankis man.You mean something like this cols = "XY"?

Re: Textarea scrollbar

Posted: Sun Jun 01, 2008 6:07 am
by vargadanis
highjo wrote:thankis man.You mean something like this cols = "XY"?
Yup... In the future, if you have this sort of questions, you will find an answer here: http://www.w3schools.com/