Click to See Complete Forum and Search --> : simple: TEXT BOX WITH COLOUR SCROLL BAR


daveago_forlan
09-01-2003, 11:02 AM
HI there
I'm very new to javascript and have been scouring the net for a script or info on how to create script for a text box on a page, which can be scrolled down to read text inside. the closest I've found is this script;

<DIV STYLE="width: 350; height: 100;
overflow: scroll; border:1pt red solid">
contents
</DIV>

which is very close to what I need, but had horizontal scroll bars as well as vertical scroll bars. would appreciate any help you could give me on how to create a text box with a red border, a vertical scroll bars and which is resizeable.

Thanks a lot
Dave :)

BestZest
09-01-2003, 11:17 AM
The <textarea> tag creates a text box, but not resizable, use it like so:


<textarea cols=20 rows=5>
Any default text
</textarea>


BestZest

daveago_forlan
09-01-2003, 11:41 AM
thanks for you help
is there anyway to add a red border to this?

BestZest
09-01-2003, 02:52 PM
Yep easy:


<textarea cols=20 rows=5 style="border: 1pt red solid">
Any default text
</textarea>
You can cange the '1pt' bit to a higher number to make the border thicker.

Hope this is what you want

BestZest