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, ...Image Roll Over and Hover NAV menu (CSS)Image Roll Over and Hover NAV menu (CSS)
Previous
 
Next
New Post
3/28/2010 12:05 AM
 

Hello everyone,

I am having trouble determining why a root menu roll over image with sub menus does not display the same as a root menu with out sub menus.

I am currently using the following code / classes.

<div id="Menu">
    <dnn:NAV runat="server" id="dnnNAV" ProviderName="DNNMenuNavigationProvider" ControlOrientation="Horizontal" CSSNodeRoot="Main_DNNMenu" CSSNodeHoverRoot="Main_DNNMenu_hover" CSSNodeSelectedRoot="Main_DNNMenu_selected"  CssContainerSub="Subm_DNNMenu" CSSNodeHoverSub="Subm_DNNMenu_itemhover" CSSNodeSelectedSub="Subm_DNNMenu_itemselected" CSSContainerRoot="Main_DNNMenu_container" CSSControl="Main_DNNMenu_bar"
CSSNodeHover="Main_DNNMenu_hover" CSSBreak="Main_DNNMenu_break" />
</div>

/* main menu td */
.Main_DNNMenu_bar
{
 color:#666699;
 cursor:default;
 font-size: 11px;
 font-family: Tahoma, Arial, Helvetica;
 font-weight:bold;
 text-align:center;
 background-repeat:no-repeat;
 background-image:url('images/nav_unselect.png');
}

.Main_DNNMenu_Container
{
 background:aqua;
 color:fuchsia;
}
/* main menu normal */
.Main_DNNMenu
{
 color:#666699;
 font-family: Tahoma, Arial, Helvetica;
 font-size:13px;
 text-align:center;
 padding:10px 10px 10px 10px;
 text-transform:uppercase;
 margin-right:1px;
 width:124px;
 height:27px;
 background-repeat:no-repeat;
 background-image:url('images/nav_unselect.png'); 
}

/* Main Menu Hover */
.Main_DNNMenu_hover
{
 color:#9999cc;
 font-size:13px;
 font-family: Tahoma, Arial, Helvetica;
 font-weight:bold;
 text-align:center;
 padding:10px 10px 10px 10px;
 text-transform:uppercase;
 margin-right:1px;
 background-repeat:no-repeat;
 background-image:url('images/nav_select.png');
}

/* Main menu selected */
.Main_DNNMenu_selected
{
 color:#9999cc;
 text-align:center;
 font-size:13px;
 font-weight:bold;
 font-family: Tahoma, Arial, Helvetica;
 padding:10px 10px 10px 10px;
 width:124px;
 height:27px;
 text-transform:uppercase;
 margin-right:1px;
 background-repeat:no-repeat;
 background-image:url('images/nav_select.png'); 
}
.Main_DNNMenu_hover
{
 color:#9999cc;
 text-align:center;
 font-size:13px;
 font-weight:bold;
 font-family: Tahoma, Arial, Helvetica;
 padding:10px 10px 10px 10px;
 width:124px;
 height:27px;
 text-transform:uppercase;
 margin-right:1px;
 background-repeat:no-repeat;
 background-image:url('images/nav_select.png'); 
}
/* SUB Menu Normal */

.Subm_DNNMenu td
{
 background-color:black;
 z-index:1000;
 font-size:11px;
 font-weight:bold;
 font-family: Tahoma, Arial, Helvetica;
 text-align:left;
 color:#666699;
 line-height:2em;
 padding:0 10 0 10;
 margin:10px;
}

/*SUB Menu hover & selected */
.SubM_DNNMenu_itemhover td, .Subm_DNNMenu_itemselected td
{
 font-size:11px;
 background-color:#333333;
 color:#9999cc;
 font-weight:bold;
 font-family: Tahoma, Arial, Helvetica;
 text-align:left;
 line-height:2em;
 z-index:1000;
 padding:0 10 0 10;
 margin:0px;
}

It almost feels like I am missing a class for this particular hover.

Thanks for all your help.

 
New Post
4/2/2010 10:35 AM
 

Hi, I installed your code and the home menu option shows the same with or without submenus (did you experience the error in any specific browser?)

In both cases this is the main structure:
<span class="Main_DNNMenu mi mi0 id38 root first" ...>
  <span class=icn ...></span>
  <span class=txt ...></span>
</span>

you can specifically target that item by using the following styles

.Main_DNNMenu
.Main_DNNMenu_hover

Also make sure that in your case there are no other styles or stylesheets overriding these options.


Beatriz Oliveira
Founder of Bind New Media & Design and creator of Bind Tuning
Linked In | Twitter
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Image Roll Over and Hover NAV menu (CSS)Image Roll Over and Hover NAV menu (CSS)


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