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

Above CSS Class is overrided by the below CSS class in RadMenu

1 Answer 24 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Vinoth K
Top achievements
Rank 1
Vinoth K asked on 19 May 2010, 08:23 AM
Hi,

I got stuck with CSS in RADMenu.

I am having a CSS file for RAD Menu. It is having a lot of CSS class for a single RADMenu.
Its applied fine. I added a new CSS class named '.InnerSubMenu'.
I am applying the css in ".RadMenu1 .rmGroup .rmItem .rmLink .InnerSubMenu". Here, I am changing the font size to 8px. I also mentioned the font size as !important .
But I am having another one css class named ".RadMenu1 .rmGroup .rmItem .rmLink .rmText". Here the font size is 12px.

On examining, i found that the InnerSubMenu css class is applied initially.
But the rmText css class replaces the font size to 12px.

I cant change the rmtext class as it is applied for all nodes in the menu.

The innerSubmenu needs to be applied at particular point of time.

Kindly let me know, how can i achieve the scenario.

Thanks,
Vinoth

1 Answer, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 21 May 2010, 11:48 AM
Hello,

It is not recommended to use !important - it is much better to adjust the CSS selectors' Specificity so you can achieve a fine-grained control over which CSS selector is applied to which element.

Kind regards,
Dimitar Milushev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Menu
Asked by
Vinoth K
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Share this question
or