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

Can you rotate the text in a menu item?

2 Answers 62 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Trent Ballew
Top achievements
Rank 1
Trent Ballew asked on 30 Sep 2009, 01:05 AM
I'd like to create a vertical menu with text rotated 90 degrees counter-clockwise.  Is there a way to do this?

Essentially, what I'm trying to do is create an expandable menu that can collapse into a vertical tab like the toolbox in visual studio (with text rotated to save horizontal space).

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Sep 2009, 06:50 AM
Hello Trent,

You can try out the following css setting to rotate the text of the menu item:
aspx:
 <telerik:RadMenu  ID="RadMenu1" runat="server" Flow="Horizontal"
            <Items> 
            <telerik:RadMenuItem Height="50px" CssClass="mymenu" Text="menu1">  
            <Items> 
             <telerik:RadMenuItem Text="submenu1">             
            </telerik:RadMenuItem> 
            <telerik:RadMenuItem Text="submenu2">             
            </telerik:RadMenuItem> 
            </Items>            
            </telerik:RadMenuItem>            
            </Items> 
 </telerik:RadMenu> 

css:
 .mymenu .rmText 
    { 
        -moz-transform: rotate(-90deg); /* Mozilla FireFox */ 
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); /* IE */ 
 
    }  

Thanks
Princy.
0
Kamen Bundev
Telerik team
answered on 30 Sep 2009, 10:15 AM
Hi Trent,

You can also add:
-webkit-transform: (-90deg);
to rotate the text in Safari/Chrome too.

Regards,
Kamen Bundev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Menu
Asked by
Trent Ballew
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kamen Bundev
Telerik team
Share this question
or