SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2001
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    text box bgcolor

    Hi
    can anyone tell me how to alter the background colour of a text box and alter the font style it displays..

    thanks chris

  2. #2
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just add some thing like the following to the textbox select tag:

    Code:
    <select name="services" size="1" style="width:100px; font-size:11px; background-color: #ffffff;">

  3. #3
    web daemon jorasmi's Avatar
    Join Date
    Nov 2001
    Location
    Philippines
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    glenplake is right or you may use
    <style>
    .youclass { background-color:blue; font-family:arial, verdana, color: red }
    </style>

    <p class = "yourclass">TEXT HERE</p>

  4. #4
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by jorasmi
    glenplake is right or you may use
    <style>
    .youclass { background-color:blue; font-family:arial, verdana, color: red }
    </style>

    <p class = "yourclass">TEXT HERE</p>
    Ooer, watch the typo's jorasmi

    Should be (for a text box) :

    Code:
    <style>
    .yourclass { background-color:blue; font-family:arial, verdana, color: red }
    </style>
      <input class="yourclass" type="text" name="textfield">


Bookmarks

Posting Permissions

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