Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by jp on Nov 15, 2007 08:34
open dhtmlx forum
2 comboboxes 1 page

what happens when you need 2 different sizes of the combobox for 2 different selects?

This size hardcoded in dhtmlxCombo.css

.dhx_combo_list{
...
height:100px;

thats fine for one but what if i had another combo on the same page and i wanted it to be 200px

or do all comboboxes have to be the same size on any given page working with one css
Answer posted on Nov 15, 2007 09:17
You can use nested CSS rules , for example you have one combobox inside DIV with id="parent1" and second combobox inside DIV with id="parent2", now you can define next two rules.

#parent1 .dhx_combo_list{ height: 50px;  }

#parent2 .dhx_combo_list{ height: 200px;  }

which be applied to relative comboboxes
Answer posted by jp on Nov 16, 2007 04:44
thanks seems fine except for the .dhx_combo_list div is there anyway to get around that so that

#combo_zone2 .dhx_combo_list div{
    cursor:default;
    padding:2px 2px 2px 2px;
    padding-top:3px;
    padding-bottom:3px;
}

#combo_zone3 .dhx_combo_list div{
    cursor:default;
    padding:2px 2px 2px 2px;
}