www.webdeveloper.com
Results 1 to 5 of 5

Thread: .searchbox { question

  1. #1
    Join Date
    Dec 2002
    Posts
    23

    .searchbox { question

    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

  2. #2
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    <textarea wrap="virtual"></textarea>
    Visit Slightly Remarkable to see my portfolio, resumé, and consulting rates.

  3. #3
    Join Date
    Dec 2002
    Posts
    23

    Searchbox

    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

  4. #4
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    Use both. Use wrap="virtual" and .searchbox { color:textColor; border-color:borderColor; }
    Visit Slightly Remarkable to see my portfolio, resumé, and consulting rates.

  5. #5
    Join Date
    Dec 2002
    Posts
    23

    Let me try it...

    Hello Jona

    Many thanks for getting back to me.

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

    Cheers

    laTortuga

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles