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

Align Menu Text at Center

4 Answers 120 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 31 May 2008, 06:23 AM
Hi

Is there any way or some property by which I can align me Text of menu at center?

Thanks,

Rahul

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 Jun 2008, 01:24 PM
Hello Rahul,

Please, use the following css selector:
.rmLink .rmText   
    {  
    text-aligncenter;  
    } 


Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
nhaydon
Top achievements
Rank 1
answered on 23 Jul 2008, 05:32 PM
I have changed the CSS to make the menu a fixed Width of 800px, but the Text will not Center even with this selector

.rmLink .rmText   
    {  
    text-aligncenter;  
    }

Any ideas? Thank you.
0
nhaydon
Top achievements
Rank 1
answered on 23 Jul 2008, 07:53 PM
I found this article but I am getting an error using it.

http://www.telerik.com/support/kb/article/b454K-tbd-b454T-cam-b454c-cam.aspx

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
0
nhaydon
Top achievements
Rank 1
answered on 23 Jul 2008, 08:23 PM
I figured it out, I just add the width property to this selector

.RadMenu_Black

.rmRootGroup .rmLink

{

margin-right: 5px;

overflow: visible;

width:192px;

}

Tags
Menu
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Peter
Telerik team
nhaydon
Top achievements
Rank 1
Share this question
or