• NYCDrew
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
Can anyone advise if there's something I can add to the .css to change the color of the background on the drop down boxes?

For example when replying to an post, the font color and font size drop down choices?

It appears that the yafvision theme has the code I am looking for, but I can't find which code that is. :cry:


  • mddubs
  • 100% (Exalted)
  • YAF Developer
13 years ago
Hey Drew, glad to see you got thru registration :-d

I haven't worked the css styles that much to know off the top of my head, but I think if I were you this is what I'd do to figure it out. You said in one of the themes the color is changed, so take a screen shot and then use the 'color dropper' or whatever to find out the RGB value of that color (ex: #112233). Then search the css file for that color and you should be able to find the style you want.


www.bunkerhollow.com  | www.careercomputing.com 

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )

13 years ago
You can change the brackground/foreground color using CSS. Either hard coded in the control (style) or in a class ( class="myclass" ) for either HTML or ASP:DropDownList.

For example...

<form id="form1" name="form1" method="post" action="">
  <label>Color Selector
  <select name="select">
    <option value="" selected="selected">Select A Color...</option>
    <option value="0" style="background-color:#FF0000">Red</option>
    <option value="1" style="background-color:#00FF00">Green</option>
    <option value="2" style="background-color:#0000FF">Blue</option>
    <option value="3" style="background-color:#000000; color:#FFFFFF">Black</option>
    <option value="4" style="background-color:#9900FF">Purple</option>



.....the man in black fled across the desert..........and the gunslinger followed.....

  • NYCDrew
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
Thank you for your answers.

The "select" class in the .css sheet is the variable that changes it.

I appreciate your help.