HI All!
Is there a way to make OptionGroup Horizontally Aligned?
Thanks.
HI All!
Is there a way to make OptionGroup Horizontally Aligned?
Thanks.
Have [tt]
display: inline-block
[/tt] for the option elements.
.v-select-optiongroup-horizontalgroup .v-select-option {
display: inline-block;
}
For the above rule, use [tt]
addStyleName(“horizontalgroup”)
[/tt] for the option group.
See an
on-line example
.
Thanks for the css magic
Hi, I’m exactly what I’m reading here and nothing happens…
my CSS:
.horizontalgroup{
.v-select-optiongroup-horizontalgroup .v-select-option {
display: inline-block;
}
}
my Option Group in an absolute layout:
OptionGroup mostrarbarra = new OptionGroup(desc, opciones);
mostrarbarra.setNullSelectionAllowed(false);
mostrarbarra.setMultiSelect(false);
mostrarbarra.select(“Side Bar”);
mostrarbarra.addStyleName(“horizontalgroup”);
mostrarbarra.setImmediate(true);
addComponent(mostrarbarra, "right: 30px; bottom: 30px;");
please help!!!
regards, and thank you very much!!!
That CSS is not correct you cannot have nested CSS definitions. Try to say:
.v-select-optiongroup-horizontalgroup .v-select-option {
display: inline-block;
}
Thank you very much!!, this answer really helped me…
Hi:
I installed the chameleon theme and the solution you gave me stopped working…How can I solve this??
thanks!!!
Hi,
Use “inline” instead “of inline-block”, it worked for me.