1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

background color for text area

Discussion in 'HTML & Website Design' started by Lpspider, Sep 29, 2005.

  1. #1
    a quick (dumb) question...

    How can I make the background color in the text area (input box) of the below code a different color? Is it even possible?

    <div class="subscribe">
    
    <form method=post action=(removed)>
    <table border=0>
      <tr>
        <td colspan=2><font color="660033">Subscribe to our newsletter</font></td>
      </tr>
      <tr>
        <td><input type="text" name="YMLP0" size="10"></td>
        <td><input type="submit" value="Submit"></td>
      </tr>
      <tr>
        <td colspan=2></td>
      </tr>
    </table>
    </form>
    
    
    </div>
    
    Code (markup):
    Thanks!
     
    Lpspider, Sep 29, 2005 IP
  2. Arnica

    Arnica Peon

    Messages:
    320
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This will do it:
    <td><input type="text" style="background:#B0D2D7" name="YMLP0" size="10"></td>
    Code (markup):
    Obviously change the hex colour to what ever you want.
     
    Arnica, Sep 30, 2005 IP
  3. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #3
    dave487, Sep 30, 2005 IP
  4. SecondV

    SecondV Active Member

    Messages:
    76
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    70
    #4
    I myself have had problems with using just "background", seems to not work for me, so just in case, here is what I use:
    
    style="background-color: #eaeaea"
    
    HTML:
    Which would make your text field
    
    <td><input type="text" name="YMLP0" size="10" style="background-color: #eaeaea"></td>
    
    HTML:
     
    SecondV, Oct 1, 2005 IP