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, ...[NAV] menu CSS hover and selected classes not working[NAV] menu CSS hover and selected classes not working
Previous
 
Next
New Post
6/12/2009 3:26 PM
 

 Sorry... another question about the [NAV] menu... (.xml and .css code snippets at the bottom of post)

 

Neither the Hover nor Selected classes were being applied to the Root menu nodes... even though they were working fine on the Sub Nodes...

So I tried adding a ":hover" class to the .css file... this now works great in Safari and Chrome...

but IE 7 and IE 8 change the background, but they also lose the text formatting.  It reverts to plain black left-aligned text

Firefox does not pick up any of the hover changes at all.

I've tried adding the specific Node values in the xml and creating the corresponding .css entries (i.e. "CSSNodeRoot," "CSSNodeSub," etc...), but this has no effect.

I've also tried adding the text formatting pieces explicitly to the hover classes, but this also has no effect.

 

As always... if anyone can provide any insight whatsoever, I'm extremely grateful... such a stupidly easy thing becomes ridiculous with DNN... I just don't get what I'm doing wrong.  Thanks a lot,
*frustrated*
 

 

here is my skin.xml file:

 

  <Object>

    <Token>[NAV]</Token>

    <Settings>

      <Setting>

        <Name>ControlAlignment</Name>

        <Value>Justify</Value>

      </Setting>

      <Setting>

        <Name>CSSControl</Name>

        <Value>MenuBar</Value>

      </Setting>

      <Setting>

        <Name>CSSNode</Name>

        <Value>MainMenu</Value>

      </Setting>

      <Setting>

        <Name>CSSNodeHover</Name>

        <Value>MainMenuHover</Value>

      </Setting>

      <Setting>

        <Name>CSSNodeSelected</Name>

        <Value>MainMenuSelected</Value>

      </Setting>

      <Setting>

        <Name>CSSIcon</Name>

        <Value>MainMenu_MenuIcon</Value>

      </Setting>

    </Settings>

  </Object>

 

and here is my stylesheet:

 

.MainMenu,

.MainMenu_Hover,

.MainMenu:hover,

.MainMenu_Selected

{

    height:50px;

    font-family:Trebuchet MS;

    color:White;

    font-weight:bold;

    font-size:11pt;

    text-align:center;

    cursor:pointer;

}

 

.MainMenu

{

    background:url('images/Menu_On.gif') repeat-x center left;

}

 

.MainMenu:hover,

.MainMenuHover,

.MainMenuSelected

{

    background: url('images/Menu_Off.gif') repeat-x top left;

    height:50px;

}

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...[NAV] menu CSS hover and selected classes not working[NAV] menu CSS hover and selected classes not working


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