New CSS style for Combobox label

4 posts, 0 answers
  1. LMMC
    LMMC avatar
    18 posts
    Member since:
    Aug 2007

    Posted 25 Mar 2015 Link to this post

    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?
  2. Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 25 Mar 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. LMMC
    LMMC avatar
    18 posts
    Member since:
    Aug 2007

    Posted 25 Mar 2015 in reply to Magdalena Link to this post

    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.
  5. Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 26 Mar 2015 Link to this post

    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.

     
Back to Top