How to format the texts between <textarea> and </textarea

Discussion in 'HTML & Website Design' started by sugarland, Mar 24, 2009.

  1. #1
    When people enter some texts in the textarea, I want the color for some texts will be blue, and some will be green. How to do that?
     
    sugarland, Mar 24, 2009 IP
  2. ClassHelper.org

    ClassHelper.org Guest

    Messages:
    273
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use CSS styling, ala:

    <textarea style="[insert your CSS here]">Blah blah blah content</textarea>

    -OR-

    <textarea class="SomeCSSClassHere">Blah blah blah content</textarea>

    You can also Google around for a rich text editor control to use in place of a simple <textarea> tag. Hope this helps!
     
    ClassHelper.org, Mar 24, 2009 IP
  3. sugarland

    sugarland Member

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #3
    Sorry, maybe you misunderstand my question, I want like this:

    <textarea>blue color text, green color text</textarea>. Among the <textarea>, when user typing, the blue color text shall be blue, and green color text shall be green.

     
    sugarland, Mar 25, 2009 IP
  4. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #4
    use this one line

     
    olddocks, Mar 25, 2009 IP
  5. sunalogin

    sunalogin Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    really u can use CSS
    but i recommend use classe
     
    sunalogin, Mar 25, 2009 IP