What is the HTML code for scroll boxes?

User Avatar
Wiki User
December 14, 2008 10:22PM

A scroll box is really a textarea.

<textarea id="ta1" name="ta1" rows="5" cols="40"></textarea> Notice that there is a greyed-out scroll bar on the right. If you have enough text, the scroll bar becomes active. If you add style="overflow: hidden" to the text area, the scroll bar will disapear and only appear if your text "overflows". So the whole line will be:

<textarea id="ta1" name="ta1" style="overflow: hidden"rows="5" cols="40">YOUR TEXT HERE</textarea>