|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS Styles for <Select> list
Hello
![]() I need to know, if its possible using CSS or JS to.. Have alternating colours in a select list. Not a drop down menu, a select list which will have multiple selections. One thing I should mention, the contents of the list are PHP dynamic... Im sorry if this isn't a post for this forum. Thank you in advance....
__________________
... shamone! ... - Welcome to DevShed! How to post questions | MySQL Website | PHP Website | Always lewk before posting |
|
#2
|
||||
|
||||
|
I think that if you're using PHP you can set the colors while generating the code...
Post your code or send it!!
__________________
Cheers, Dave |
|
#3
|
|||
|
|||
|
Yes, you can define a css class for the option tag:
option.classname { color: background-color ; } then generate option tags like this <option class="<? echo classname; ?>"> http://galileo.spaceports.com/~ibidris/ |
|
#4
|
|||
|
|||
|
Quote:
Ahh yes, my code is PHP Code:
|
|
#5
|
|||
|
|||
|
Quote:
What about alternating the rows? Ie, one row white, the next blue, and so on and so forth |
|
#6
|
||||
|
||||
|
You can define two classes like:
Code:
.bg1 {
background-color: green;
}
.bg2 {
background-color: lime;
}
...and then... PHP Code:
Last edited by magma : August 27th, 2003 at 08:12 AM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Styles for <Select> list |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|