NYCDrew
  •  NYCDrew
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2009-02-08T18:59:19Z
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:

Thanks.
Sponsor
mddubs
2009-02-09T08:39:02Z
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.
UserPostedImage 
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 🙂 )
test2005
2009-02-10T13:12:56Z
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...


<body>
<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>
  </select>
  </label>
</form>
</body>

HTH

:)


.....the man in black fled across the desert..........and the gunslinger followed.....
NYCDrew
  •  NYCDrew
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2009-02-13T19:53:19Z
Thank you for your answers.

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

I appreciate your help.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved