How Could I Set textarea Background Color ?

Discussion in 'HTML & Website Design' started by brokensoft, Dec 13, 2006.

  1. #1
    How Could I Set textarea Background Color ?

    I want to change textarea Background color

     
     <textarea name="articlesummary" rows="3" cols="30" style="width: 96%">{$articlesummary}</textarea>
    
    PHP:
    it is the code which i want to change

    thanks
     
    brokensoft, Dec 13, 2006 IP
  2. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #2
     
     <textarea name="articlesummary" rows="3" cols="30" style="width: 96%; background-color: #ABC123;">{$articlesummary}</textarea>
    
    PHP:
     
    dp-user-1, Dec 13, 2006 IP
  3. brokensoft

    brokensoft Active Member

    Messages:
    214
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Thanks NinjaNoodles.

    How could I Do This For This Code :

    <input type="text" size=40 name="articlekeywords" value="$articlekeywords">
    PHP:
    And This :

    <input type=submit name=submit value="Submit">
    PHP:
     
    brokensoft, Dec 13, 2006 IP
  4. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #4
    If you want all textareas to have the same background color, add the following to your CSS:
    textarea {
    background-color: #ABC123;
    }
    Code (markup):
    To change specific situations (such as those you've listed, although they aren't textareas), add the following to each tag:
    style="background-color: #ABC123;"
    Code (markup):
    You could also assign classes to the elements and control them via CSS.
     
    dp-user-1, Dec 13, 2006 IP
  5. brokensoft

    brokensoft Active Member

    Messages:
    214
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #5
    NinjaNoodles.
    Thanks Too Much For Helping Me.
     
    brokensoft, Dec 13, 2006 IP
  6. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #6
    :) No problem.
     
    dp-user-1, Dec 13, 2006 IP