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

New CSS style for Combobox label

3 Answers 553 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
LMMC
Top achievements
Rank 1
LMMC asked on 25 Mar 2015, 12:58 PM
I'm trying to define a CSS style to use in Combobox label which has WebBlue skin. I read about style definition in the forum and I added to my CSS file this code:

.RadComboBox_WebBlue .MyLabelStyle.riLabel
        {
    font-family: Verdana,Helvetica,Arial;
    font-size: 10pt;
    color: Navy;
        }

I assigned MyLabelStyle to the LabelCssClass property but nothing happens, the label style of the combobox doesn't change

Any suggestion?

3 Answers, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 25 Mar 2015, 04:34 PM
Hello,

The CSS class riLabel is for label of RadInput control. RadComboBox label has CSS class rcbLabel. Apply the following to modify the label.
aspx:
<telerik:RadComboBox runat="server" Label="Label" LabelCssClass="MyLabelStyle" Skin="WebBlue"></telerik:RadComboBox>

CSS:
.RadComboBox_WebBlue .MyLabelStyle.rcbLabel {
    font-family: Verdana,Helvetica,Arial;
    font-size: 10pt;
    color: Navy;
}


Regards,
Magdalena
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
LMMC
Top achievements
Rank 1
answered on 25 Mar 2015, 05:57 PM
Thank you Magdalena, solved.
But it's strange because it works only if I put the CSS code embedded in the aspx page with the style tag, it doesn't work if I put it in my style CSS file.
0
Magdalena
Telerik team
answered on 26 Mar 2015, 03:46 PM
Hello,

It is possible that some other rules overwrite these selectors. Try to make selector stronger by adding some tags or classes selector.

Regards,
Magdalena
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
ComboBox
Asked by
LMMC
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
LMMC
Top achievements
Rank 1
Share this question
or