SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Select Box Question !!

    I want to provide a select box on a page. my question is, is there a way to make the color of the text inside the box different colors other then black ? Like red, green, ect...
    I need someones help.

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep, you can do <select style="color: red"> or <option style="color:red">. It'll work on IE 5.5, I'm not sure about other browsers/versions (it definitely won't work on NS 4).

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks

    Thank You

  4. #4
    differently saned russbellon's Avatar
    Join Date
    Jun 2001
    Location
    alternate dementian
    Posts
    399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    useing css should work (not sure if nuscrape will use the info though, it doesn't seem to render forms very well sometimes)

    set the color in your style (in the <head /> area,
    <style type="text/css">
    <!--
    .Selecta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    font-color: #FFECC2;
    font-weight : bold;
    }
    -->
    </style>

    and then call the class in your tag,
    <option class="Selecta">your text</option>

    i'm very new to CSS though, so this may not be entirely correct

    edit. that's what i get for only using two fingers to type with


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
  •