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

RadMenu Font size

3 Answers 322 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Veteran
Thomas asked on 10 Mar 2012, 05:31 PM
I am trying to change the font size of the whole RadMenu with
<telerik:RadMenu ID="RadMenu1" runat="server" Skin="Sunset" Width="100%" Font-Size="Larger"> 

Unfortunaltely that doesn't work, I have to apply the font-size to every Menu item itself.
<telerik:RadMenuItem runat="server" Text="xxx" NavigateUrl="xxx.aspx" Font-Size="Larger">

Is this a feature or a bug?

Thanks, Thomas

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Mar 2012, 06:42 AM
Hello,

When you are using a skin you have to override the default font-size using css.
CSS:
.RadMenu_Sunset, .RadMenu_Sunset a.rmLink
{
    font-size :larger !important;
}

Thanks,
Princy.
0
Shoshanah
Top achievements
Rank 1
Iron
answered on 02 Jul 2014, 04:45 PM
Thanks Princy.

I have a followup question for this solution. In my application, we allow users to select the Skin they want to use.  Is there a way to use CSS to set the font that would apply to all skins?
0
Princy
Top achievements
Rank 2
answered on 03 Jul 2014, 03:56 AM
Hi Shoshanah,

In order to achieve your scenario please try to set the CssClass for the RadMenuItem to change the font-size as follows.

ASPX:
<telerik:RadMenu ID="rmenuTestItems" runat="server">
    <Items>
        <telerik:RadMenuItem Text="Item1" CssClass="item-font">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Item2" CssClass="item-font">
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>

CSS:
.item-font
{
    font-size: large !important;
}

Thanks,
Princy.
Tags
Menu
Asked by
Thomas
Top achievements
Rank 1
Veteran
Answers by
Princy
Top achievements
Rank 2
Shoshanah
Top achievements
Rank 1
Iron
Share this question
or