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

[Solved] First level of items width 100%

3 Answers 114 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Peter Zolja
Top achievements
Rank 1
Peter Zolja asked on 24 Mar 2008, 05:42 PM
Hi,

I'm trying to do something I consider easy, but it turns out to be not so easy. I have a div that has a certain width (may vary). I'm trying to put a (vertical) menu in this div. All the items in the first level (the ones that are visible by default) should stretch to 100% of the container (in this case a div).

Setting the width for the RadMenu to 100% makes the menu stretch, but the items are not following along (they remain the same width as before, I'm guessing the width set by the item's text content). How can I make the items stretch as well?

Thanks.

P.S. I'm using a custom skin so changing the css would be OK, but I need to know what to change.

3 Answers, 1 is accepted

Sort by
0
Peter Zolja
Top achievements
Rank 1
answered on 24 Mar 2008, 05:46 PM
I guess it was easy after all :) I had to change this:

.RadMenu_Default .rmVertical .rmItem { border-bottom: 1px solid #353535; }

to this:

.RadMenu_Default .rmVertical .rmItem { width:100%; border-bottom: 1px solid #353535; }
0
Peter Zolja
Top achievements
Rank 1
answered on 24 Mar 2008, 07:36 PM
Spoke too soon; but this should be in RadMenu not Editor -- sorry.
0
Peter
Telerik team
answered on 25 Mar 2008, 05:14 PM
Hi Peter,

Since the <li> element with .rmItem class wraps the link ement with .rmLink class you need to set the width property to 100% for both classes:

.rmLink, .rmItem  
    {  
        width: 100%;  
    } 



Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Peter Zolja
Top achievements
Rank 1
Answers by
Peter Zolja
Top achievements
Rank 1
Peter
Telerik team
Share this question
or