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, ...Hover state for submenu using [SOLPARTMENU]Hover state for submenu using [SOLPARTMENU]
Previous
 
Next
New Post
2/24/2006 12:28 PM
 

I'm pulling my hair out here! I've set-up a [SOLPARTMENU] and configured it to use images, etc, no problem, but the submenu hover border won't work properly!! Here is my code:

/*-- applies to items in submenus only --*/
.MainMenu_MenuItem {
 font-family: tahoma;
 color: #00205A;
 font-size: 11px;
 background: #FFFFFF;
 font-weight: bold;
 font-style: normal;
 border: #FFFFFF 1px solid;
 padding: 0px 12px 1px 3px;
 font-weight: bold;
 height: 17px;
}

/*-- hover state in submenus only --*/
.MainMenu_MenuItemSel {
 font-family: tahoma;
 font-size: 11px;
 font-weight: bold;
 cursor: pointer;
 cursor: hand;
 color: #00205A;
 background: #FFFFFF;
 border: #CC0000 1px solid;
 padding: 0px 12px 1px 3px;
 font-weight: bold;
 height: 17px;
}

As you can see, when it's not being hovered over by the mouse the border is #FFFFFF (making it invisible, as the background is also white) and when it is hovered over, the same code is used to change it red (#CC0000). Simple. Only when I view it and hover over a submenu, only the left and right borders turn red, not the top and bottom! So I don't get a box like I am trying to achieve! Can anyone help with this?!

Lee

 
New Post
2/24/2006 4:11 PM
 

You are finding yourself in probably the biggest area I regret in my early design decisions of the menu (couple years back).  A menu item actually consists of 3 parts.  The Icon, Text, and potential arrow.  In HTML this translates to three different TDs.  In order for me to make the menu item get a border I offered properties on my control to specify this color, since the borders of the icon would need to be top,left,bottom.  The borders on the text part just top,bottom, and the borders on the arrow part would need to be top,right,bottom.  This seemed like a reasonable solution at the time, however, it actually predates the time I allowed for the menu to have CSS classes associated to it.  If I could do it over I would not go that route... in fact I am planning on "doing it right" for the DNNMenu I am working on...

With all that said, to solve your problem you need to specify the selectedbordercolor attribute in your skin and choose your color. 

There may be other solutions to this problem but hopefuly this gives you some additional understanding.


 
New Post
2/25/2006 12:37 PM
 

Thanks Jon

I've tried this and nothing happened. I tried the following in my skin.xml:

<Setting>
    <Name>selectedbordercolor</Name>
    <Value>#CC0000</Value>
   </Setting>

and this (MainMenu_MenuItemSel being the class in the stylesheet):

<Setting>
    <Name>selectedbordercolor</Name>
    <Value>MainMenu_MenuItemSel</Value>
   </Setting>

I've played with the colours making them bright green so I could make sure they work, and they change fine, so I don't know why it's not working.

Lee

 
New Post
2/27/2006 9:56 AM
 
You definietly need to specify a color, not a class.  Do you have a url to look at?

 
New Post
2/28/2006 6:54 AM
 

Hi Jon

Here is the URL I'm working on - http://www.tonicboxdotnet.com/portal/

The skin.xml has this code:

<Setting>
    <Name>selectedbordercolor</Name>
    <Value>#CC0000</Value>
   </Setting>

Thanks

Lee

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Hover state for submenu using [SOLPARTMENU]Hover state for submenu using [SOLPARTMENU]


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