# How to change combobox back-ground color

vasu
57

Hi Friends,

I had a combobox with set of options in my zul file. When ever i tried to select an option from the combobox, the option that has mouse cursor on it, is getting back-ground as blue. Is there any why to change the combobox background color.

Regards,
Vasu.

delete retag edit

## 3 Replies

flyworld
155 3

use this

<style>
.z-combobox-pp .z-combo-item-over{
background:blue;
}
.z-combobox-pp .z-combo-item-seld{
background:red;
}
</style>


"pp" means popup :)

vasu
57

Hi,

I am using .css file to set up styles. even though i have placed the same code which is shown below in the css file
background color still is in blue .

.z-combobox-popup .z-combo-item-over{
background:red;
}
.z-combobox-popup .z-combo-item-seld{
background:red;
}

regards,
Vasu.

flyworld
155 3

sorry, i think i didn't say it clearly,
coz the postfix of class is "pp" , so i just explain its means popup.
you should use ".z-zombobox-pp" and the style will change :)

[hide preview]