Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Root and Sub Menu MouseoversRoot and Sub Menu Mouseovers
Previous
 
Next
New Post
11/23/2007 2:20 PM
 

I can't seem to get my root and submenus to retain the same mouseover effects. I am tryin to do something that I think should be very simple - make the background color darker on a mouseover or selected state in both the root and the sub menus. In this case, I am trying to apply exactly the same colors to the root and submenus but I'd like to be able to make the submenus different in the future.

This is the definition in my .ascx file

<dnn:SOLPARTMENU runat="server"
 id="dnnSOLPARTMENU"
 iconwidth=0
 userootbreadcrumbarrow="false"
 usearrows="false"
 rightseparator="&lt;img src=&quot;images/menu_div.gif&quot;&gt;"
  />

and this is what I've defined in my CSS

.MainMenu_MenuItem, .MainMenu_MenuItem TD
{
 background-color: #209519;
 color: #FFFFFF;
 font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; 
 font-size: 11px;
 font-style: normal;
 font-weight: bold; 
 cursor: pointer;
 cursor: hand;
 padding-left: 4px;
 padding-right: 4px;
 height: 25px; 
}

.MainMenu_MenuItemSel, .MainMenu_MenuItemSel TD
{
 background-color: #336600;
 color: #FFFFFF;
 font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; 
 font-size: 11px;
 font-style: normal;
 font-weight: bold; 
 cursor: pointer;
 cursor: hand;
 padding-left: 4px;
 padding-right: 4px; 
 height: 25px;
 border-top-style:solid;
 border-top-color:#FFFFFF;
 border-top-width: 1px;
 border-bottom-style:solid;
 border-bottom-color:#FFFFFF;
 border-bottom-width: 1px; 
}

.MainMenu_MenuArrow, .MainMenu_RootMenuArrow, .MainMenu_MenuIcon {display: none; }

I've tried many variations but can't seem to get everything to work all at once. What I've included works correctly for the root, but not the submenus. Any assistance would be most appreciated.

 
New Post
11/26/2007 1:38 PM
 

Hi  from memory, I am sure someofmy free skins do have what you want. Have a look

Salar

 
New Post
11/26/2007 2:21 PM
 

Tim,

The submenu item class will inherit the "MainMenu_MenuItem" styles.

If you want to make the root menu item and submenu item different, style the root menu using a "MainMenu_RootMenuItem".

Hope this helps!


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Root and Sub Menu MouseoversRoot and Sub Menu Mouseovers


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out