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

Menu Item Text Alignment

1 Answer 73 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Veteran
Iron
Andrew asked on 24 Sep 2008, 04:31 PM
How do I get my menu items text to align center?

My menu is db drivin and each items width is set from the database, I want to align the text of the menu item to the center. It looks as if there is a set amount of space at the start of each menu item as all my menu items have the same amount of space at the start no mater what the menuitems width is set to.

I have tried to modifiy ".rmText" in the css class but that had no effect

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 25 Sep 2008, 07:27 AM
Hi Andrew,

Please add the following css styles to your page to make RadMenu items with fixed width and align the text in the center:

<style type="text/css">  
    .rmItem {  
        width200px !important;  
    }  
    .rmText {  
        text-aligncenter !important;   
    }  
</style> 

All the best,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Andrew
Top achievements
Rank 1
Veteran
Iron
Answers by
Yana
Telerik team
Share this question
or