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

FORMATTING RADMENU

1 Answer 52 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Bayley
Top achievements
Rank 1
Bayley asked on 17 Apr 2011, 07:40 PM
I'm new to Telerik and I'm trying to set up a RadMenu and I'm having formatting problems.

1)  Rad menu is in an <asp:TableCell  , as shown below

 

<asp:TableCell runat="server" ID="tclNav2" HorizontalAlign ="Center">

 

 

 

<telerik:RadMenu ID="RadMenu1" runat

="server">

The menu doesn't seem to be centered in the cell.  It is left aligned.

2)  I was trying to use CSS to format menu items, but it doesn't seem to recognize CssClass items

 

<telerik:RadMenuItem runat="server" CssClass="radMenu1" Text="Home Page"></telerik:RadMenuItem

>

Can you use CssClass with the RadMenuItem?

Thanks for your help.

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 20 Apr 2011, 12:17 PM
Hello Bayley,

You could apply the following css class to the RadMenu and keep the HorizontalAlign ="Center" of the TableCell. I also attached a sample page demostrating how it works:
.CenteredMenu
      {
          float: none !important;
          margin: 0 auto;
          display: inline-block;
      }

<telerik:RadMenu ID="RadMenu1" runat="server" CssClass="CenteredMenu">

Greetings,
Kate
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Menu
Asked by
Bayley
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or