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

Menu item line spacing

3 Answers 74 Views
Menu
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 17 Apr 2012, 06:11 PM
I have a vertical menu that has menu items that need to wrap and I would like to adjust the spacing to make the wrapped text spacing smaller. Is this possible?

See the attachment.

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 18 Apr 2012, 11:23 AM
Hello John,

I am not quite sure how you get the wrapping of the items but using the code below you can only adjust the left padding of the menu items:
<style type="text/css">
       div.RadMenu_Default .rmVertical .rmFirst,
       div.RadMenu_Default .rmVertical .rmLast,
       div.RadMenu_Default .rmVertical a.rmLink
       {
           white-space: normal;
       }
        
       div.RadMenu_Default .rmVertical a.rmLink
       {
           padding-left: 5px;
       }
   </style>

Regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John
Top achievements
Rank 1
answered on 18 Apr 2012, 12:09 PM
I'm concerned with the vertical spacing. The attached graphic shows what I'd like the menu to look like.

I got the wrapping with:
<style type="text/css"
.WrappingItem 
white-space: normal; 
</style
  
and
  
item.CssClass = "WrappingItem" 
  
  
0
Kate
Telerik team
answered on 23 Apr 2012, 11:43 AM
Hello John,

Thanks for clarifying. You can use the following css class selector to reduce the space between the lines:
div.RadMenu_Default, div.RadMenu_Default a.rmLink
       {
           font: 12px/20px "Segoe UI" ,Arial,sans-serif;
       }

Regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Menu
Asked by
John
Top achievements
Rank 1
Answers by
Kate
Telerik team
John
Top achievements
Rank 1
Share this question
or