Click to See Complete Forum and Search --> : .searchbox { question


laTortuga
03-05-2003, 04:25 PM
Hello

On one of my forms I use .searchbox { instead of the textarea tag in the following way:

<font face="etc" size="etc" color="etc"><b>Message</b></font><br><input name="etc" value="<%= etc %>" class="searchbox"></p>

One limitation is that when the user types in the message box, the text goes on and on because there are no scrollbars. I think this might be something to do with wordwrapping.

Is there a value I can use with .searchbox { so that if the user types more than one line, a scrollbar would appear? In textarea we would normally use rows and cols.

Many thanks

laTortuga

Jona
03-05-2003, 09:01 PM
<textarea wrap="virtual"></textarea>

laTortuga
03-06-2003, 04:53 PM
Hello Jona

Thanks for your reply.

Do you mean I should use:

<textarea wrap="virtual"></textarea>

instead of .searchbox {?????

But how would I define the border properties, colour, etc?

Many thanks again.

laTortuga

Jona
03-06-2003, 04:57 PM
Use both. Use wrap="virtual" and .searchbox { color:textColor; border-color:borderColor; }

laTortuga
03-07-2003, 06:45 AM
Hello Jona

Many thanks for getting back to me.

Let me try it..........

Cheers

laTortuga