PDA

View Full Version : Changing Table Colors On The Dynamic Image Selector



shadowbeast
05-06-2006, 05:22 PM
Dynamic Image Selector
http://www.dynamicdrive.com/dynamicindex4/imageselector.htm

Is it possible to change the colors of the border, background and text of the dynamic image selectors menu box, I have tried but for some reason the table codes do not work.

jscheuer1
05-06-2006, 06:54 PM
Select and other form elements are limited as to what you can style about them. The border is out of reach in IE but the text and background can be styled. In other browsers, so can the border. No browser that I am aware of has a way for the designer to change the highlight colors. Give the select an id:


<select id="sel1" name="dynamicselector2" size="4" onChange="generateimage(this.options[this.selectedIndex].value)">

In the head of the page, set its style:


<style type="text/css">
#sel1 {
color:#ffffff;
background-color:#000000;
border:1px solid red;
}
</style>

shadowbeast
05-06-2006, 07:31 PM
Thanks that helps a lot