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

Minimum width for Menu

2 Answers 115 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Richard M
Top achievements
Rank 1
Richard M asked on 20 Apr 2011, 08:21 PM
I want to set the minimum width of the top of the menu, not including the child dropdown nodes, to 100px.  I tried setting width="100px" and Style="min-width: 100px", but when I click on the menu, it doesn't fill the whole 100px space, and looks weird, when the selected value is less than 100px.  I've included a picture as an example.  If there is some CSS attributes I can add to fix this, please let me know

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 21 Apr 2011, 07:45 AM
Hello Richard,

You can easily achieve this by overriding the default CSS class for the RadMenu like below.

CSS:
.RadMenu .rmText
   {
 width:100px !important;
   }
.RadMenu .rmExpanded
    {
    width:auto !important;
    }

Also take a look at the following help article for more on CSS Skin File Selectors for RadMenu.
CSS Skin File Selectors

Thanks,
Shinu.
0
Richard M
Top achievements
Rank 1
answered on 26 Apr 2011, 05:49 PM
That worked perfectly, thank you!
Tags
Menu
Asked by
Richard M
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Richard M
Top achievements
Rank 1
Share this question
or