This is a migrated thread and some comments may be shown as answers.

Rad LIstbox css class names

2 Answers 50 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Albert Shenker asked on 16 Sep 2014, 08:51 PM
I have a Rad Listbox which is having some of its styles (mainly the background color) messed up when placed inside a certain container of my page. I assume it is because the Listbox css is inheriting from some custom css classes in the container. This is odd since I doubt very much if any of my style classes are named anything like rlb, or whatever prefix you use for your style class definitions. In any case, I would think your styles would also have !important syntax to prevent them from being overridden. In any case, is there any way I can prevent this? Its hard to tell which of my custom css classes are being attributed to the rad listbox.

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Zhekov
Telerik team
answered on 19 Sep 2014, 08:25 AM
RadListBox uses UL, LI, SPAN / A and LABEL elements (the last one is in the checkboxes scenario).

It's not impossible for a generic selector that targets a / span / li elements to have higher specificity than the styles in RadListBox.

Of course, this is just a wild guess. To know for sure, we'll need to see the actual page with the actual computed styles.

Regards,
Ivan Zhekov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Albert Shenker
Top achievements
Rank 1
Veteran
answered on 19 Sep 2014, 11:51 AM
ok, then there must be a direct style declaration on the page somewhere. I'll have to go and dig it up. Thanks.
Tags
ListBox
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Answers by
Ivan Zhekov
Telerik team
Albert Shenker
Top achievements
Rank 1
Veteran
Share this question
or