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

USING CSS WITH RADMENU

1 Answer 321 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Bayley
Top achievements
Rank 1
Bayley asked on 06 May 2011, 02:00 PM
i'm trying to use CssClasses with <telerik:RadMenu but it doesn't seem to work.  Inline formating, i.e. Font-Size does.  What am I missing and where is it documented?

Here's my relevant code:

 

<telerik:RadMenuItem ID="radMenuItem1" runat="server" text="Home" CssClass="radMenuBar" Width

="100px">

 

 

 

 

</telerik:RadMenuItem >

In Telerik CSS

.radMenuBar
{
font-family: Arial, Helvetica, sans-serif ;
font-size: 18px ;
font-weight: bold
text-align: center ;
 }

 

 

 

Thanks for your help,

Bayley

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 May 2011, 05:55 AM
Hello Bayley,

You can easily achieve this by overriding the default CSS like below.
CSS:
<style type="text/css">
        .RadMenu .rmText
        {
            width: 200px !important;
            text-align: center !important;
            color: Red !important;
        }
</style>

Also take a look at the following documentation for more on RadMenu CSS file selectors.
CSS Skin File Selectors.

Thanks,
Shinu.
Tags
Menu
Asked by
Bayley
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or