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, ...Menu Background-imagesMenu Background-images
Previous
 
Next
New Post
5/12/2006 1:42 AM
 

I have just copied and pasted that code into a skin I'm working on and I can see in FF it doesn't work - RootMenu class works -

And I've got another skin with similar behaviour - eg. classes assigned, however it behaves differently - with the active class, when in hover state, doesn't show the different image hover state, in IE or FF.

I can post this code - it will give you the same affect but I couldn't get the active sub menu hover class working and came to the conclusion perhaps there wasn't one.

Nina Meiers


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
5/12/2006 2:05 AM
 

This is one I've got running that seems to work - try that and see if it doesn't make a difference.
You'll have to decipher some of the elements though - eg. widths, heights.

<dnn:MENU runat="server" id="dnnMENU"
separatecss="true"
display="vertical"
rootmenuitemcssclass="MainMenu_Off"
rootmenuitemactivecssclass="MainMenu_Active"
rootmenuitemselectedcssclass="MainMenu_Selected"
rootmenuitembreadcrumbcssclass="MainMenu_BreadcrumbActive"
delaysubmenuload="true" />

/*===================================================*/
/* Begin  Main Menu    - Solpart Menu Functionality  */
/* Tested in FireFox/Mozilla - Netscape 6, IE7       */
/*===================================================*/

/* Container for main menu */
.MainMenu_MenuContainer {
background: transparent;
padding: 0px;
width: 174px;
}

/* Menu bar */
.MainMenu_MenuBar {
padding: 0px;
background: transparent;
width: 100%;}


/* Applies to non active state of menu  */
.MainMenu_MenuItem {
font-family: tahoma; 
color: #999999;
font-size: 11px;
background: #F4F3F3;
font-weight: bold;
font-style: normal;
padding: 0px 10px 0px 10px;
height: 25px;
border: 0;}

/* Hover state for submenu items */
.MainMenu_MenuItemSel {
font-family: tahoma;
font-size: 11px;
font-weight: bold;
cursor: pointer;
cursor: hand;
color: #ffffff;
background: #96B3BB;
border-left: #7D9D92 0px solid;
border-right: #7D9D92 0px solid;
 padding: 0px 10px 0px 10px;}


/* Container for submenu */
.MainMenu_SubMenu {
z-index: 1000; 
cursor: pointer; 
cursor: hand;
background: #FAFAFA;
padding: 0px;
border: 1px solid #dddddd;
font-weight: normal;
filter: none;
padding: 1px 1px 1px 1px;}


/* Hidden Elements - This stops the icon and arrows from being displayed in the menu */
.MainMenu_MenuArrow, .MainMenu_RootMenuArrow, .MainMenu_MenuIcon, .MainMenu_MenuBreak {display: none;}

/* Non Selected state for main menu items */
.MainMenu_Off {
color: #6F7984;
background: transparent url(BusinessPix/Button_Off.gif) no-repeat ;
padding: 0;
height: 25px;
font-weight: bold;}

/* main menu items Selected */
.MainMenu_Selected {
color: #7D9D92;
background:  url(BusinessPix/Button_Act.gif) no-repeat;
padding: 0;
height: 25px;
font-weight: bold;}

/*  main menu item which is active */
.MainMenu_BreadcrumbActive {
color: #7D9D92;
background: transparent url(BusinessPix/Button_Ovr.gif) no-repeat;
padding: 0; 
height: 25px;
font-weight: bold;}

/* Over state for the active main menu items  */
.MainMenu_Over, {
height: 25px;
padding: 2px 2px 2px 0;
background: transparent url(BusinessPix/Button_Ovr.gif) no-repeat;
color: #67848A;}

/* active state for the active main menu items  */
.MainMenu_Active, {
height: 25px;
padding: 2px 2px 2px 0;
background: transparent url(BusinessPix/Button_Ovr.gif) no-repeat;
color: #67848A;}

/*==================*/
/* End Main Menu    */
/*==================*/


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
5/12/2006 3:52 AM
 
jmorrissette wrote

Per code below, the "idle" and "active" graphics show properly in firefox but the "hover" does not show!

I included these values in my solpart menu:

            rootmenuitemcssclass="MainMenu_Idle"
            rootmenuitemactivecssclass="MainMenu_Active"
            rootmenuitemselectedcssclass="MainMenu_Selected"
            rootmenuitembreadcrumbcssclass="MainMenu_BreadcrumbActive"

I coded my CSS this way:

.MainMenu_Idle              { font: bold 11px Tahoma, Arial; color: #666; background:  url(nav_idle.gif) no-repeat; padding: 0px; height: 20px; font-weight: bold; }

.MainMenu_Selected          { font: bold 11px Tahoma, Arial; color: #666; background:  url(nav_hover.gif) no-repeat; padding: 0px; height: 20px; font-weight: bold; }

.MainMenu_Active,
.MainMenu_BreadcrumbActive  { font: normal bold 11px Tahoma, Arial; color: #666; background:  url(nav_active.gif) no-repeat; padding: 0; height: 20px; }

 

It is the order in the CSS which causes problems. You should define it in this order:

.MainMenu_Idle              { font: bold 11px Tahoma, Arial; color: #666; background:  url(nav_idle.gif) no-repeat; padding: 0px; height: 20px; font-weight: bold; }

.MainMenu_Active,
.MainMenu_BreadcrumbActive  { font: normal bold 11px Tahoma, Arial; color: #666; background:  url(nav_active.gif) no-repeat; padding: 0; height: 20px; }

.MainMenu_Selected          { font: bold 11px Tahoma, Arial; color: #666; background:  url(nav_hover.gif) no-repeat; padding: 0px; height: 20px; font-weight: bold; }

That's it.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
5/12/2006 12:35 PM
 

Here is what I had to do, in addition to changing the order.  Not sure this is very intuitive, any explanation would certainly be helpful and could provide learning for others.  I noticed few others with same trouble in forums.

(1) I changed the order of CSS items, per suggestion
(2) I simplified the solpart menu coding, eliminating unnecessary effects.
(3) I moved all nav images into their own subfolder
(4) I added the word "transparent" before the background URL in the CSS.  Nina, not sure why you didn't put the word transparent before the MainMenu_Selected class but things work.
(5) I moved font coding after the background URL tag in all CSS blocks
(6) I added the .MainMenu_Over class, even though it is not referenced from solpart menu control in Nina's code example.

<dnn:SOLPARTMENU
            runat="server"
            id="dnnSOLPARTMENU"
            separatecss="true"
            display="Vertical"
            userootbreadcrumbarrow="false"
            usesubmenubreadcrumbarrow="false"
            rootmenuitemcssclass="MainMenu_Off"
            rootmenuitemactivecssclass="MainMenu_Active"
            rootmenuitemselectedcssclass="MainMenu_Selected"
            rootmenuitembreadcrumbcssclass="MainMenu_BreadcrumbActive"          />


/*-- menuitems --*/
.MainMenu_Off    { color: #666; background: transparent url(NAV/nav_idle.gif) no-repeat; padding: 0px; height: 20px; font: bold 11px Tahoma, Arial; }

.MainMenu_Selected          { color: #666; background: url(NAV/nav_hover.gif) no-repeat; padding: 0px; height: 20px; font: bold 11px Tahoma, Arial;  }

.MainMenu_BreadcrumbActive  { color: #666; background: transparent url(NAV/nav_active.gif) no-repeat; padding: 0px; height: 20px; font: bold 11px Tahoma, Arial; }

.MainMenu_Over     { color: #666; background: transparent url(NAV/nav_hover.gif) no-repeat; padding: 0px; height: 20px; font: bold 11px Tahoma, Arial;  }

.MainMenu_Active    { color: #666; background: transparent url(NAV/nav_active.gif) no-repeat; padding: 0px; height: 20px; font: bold 11px Tahoma, Arial; }

 
New Post
5/13/2006 3:04 PM
 
jmorrissette wrote

Here is what I had to do, in addition to changing the order.  Not sure this is very intuitive, any explanation would certainly be helpful and could provide learning for others.  I noticed few others with same trouble in forums.

I'm not sure if this is your question, but if you want to know why you had to change the order of the classes. It is because of the CSS specificy (you can read about it in a good CSS book). For the menuitem TD (it is a table cell), the selectieve class and the active class are equally important, if this is the case, the last one defined wins over the other.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Menu Background-imagesMenu Background-images


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