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, ...solpartmenu ignores css when submenu item is selectedsolpartmenu ignores css when submenu item is selected
Previous
 
Next
New Post
10/22/2008 9:00 AM
 

Hi all,

I've setup my solpartmenu so each root item has a fixed size and background image. When you click on an item it changes its background image.

I thought i'd sorted it until i clicked on a submenu item.  The root menu item for that submenu item changes width, cutting off the edge of the background image. Heres my css code:

/** SolPartMenu CSS **/
.MainMenu_MenuContainer{ background-color: transparent; float:left; }
.MainMenu_MenuBar { cursor: pointer; height: 25px; }
.MainMenu_MenuItem {
    cursor: pointer;
    color: white;
    font-family: Arial, Helvetica;
    font-size: 12px;
    /*font-weight: bold;*/
    font-style: normal;
    border: none;   
    padding: 2px 4px 2px 4px; }
.MainMenu_MenuItemSel {
    font-family: Arial, Helvetica;
    font-size: 12px;
    font-weight: bold;
    font-style: normal;
    /*background-color: #254C83; /* The selected colour of each item */   
    border: none;
    color: White;
    padding: 2px 4px 2px 4px; }
.MainMenu_RootMenuItem  {
    background-color: Transparent;
    background-image: url(../Images/menuUp.png);
    background-repeat: no-repeat;}
.MainMenu_RootMenuItem td { width:90px; text-align:center; } /* Sets width of all root menu items */
.MainMenu_RootMenuItemSel  {
    width:90px;
    background-color: #254C83;
    font-weight:bold;
    background-color: Transparent;
    background-image: url(../Images/menuDown.png);
    background-repeat: no-repeat; }
.MainMenu_RootMenuItemActive  {
    color: #2A7DA0;
    background-color: Transparent;
    background-image: url(../Images/menuActive.png);
    background-repeat: no-repeat; }
.MainMenu_RootMenuItemBreadcrumb {}
.MainMenu_RootMenuArrow { display: none; }
.MainMenu_SubMenu { background-color: #5F9AB8; color: #254C83; border: none; background-image: none; }
.MainMenu_SubMenuItem { padding: 2px 4px 2px 4px; background-image: none; }
.MainMenu_SubMenuItemSel { background-color: #254C83; }
.MainMenu_SubMenuItemSelected { background-color: #254C83; }
.MainMenu_MenuArrow { display: none; }
.MainMenu_MenuBreak { background-color: Transparent; border: none; }
.MainMenu_MenuIcon { display: none; }

Heres the paramters used with the menu:

<dnn:SOLPARTMENU runat="server" ID="dnnSOLPARTMENU"
userootbreadcrumbarrow="false"
usearrows="false" moveable="false"
MenuEffectsMouseOverExpand="true" Display="horizontal"
FontBold="true" ControlAlignment="right"
rootmenuitemcssclass="MainMenu_RootMenuItem"
rootmenuitemselectedcssclass="MainMenu_RootMenuItemSel"
rootmenuitemactivecssclass="MainMenu_RootMenuItemActive"
rootmenuitembreadcrumbcssclass="MainMenu_RootMenuItemBreadcrumb"
submenuitemcssclass="MainMenu_SubMenuItem"
submenuitemselectedcssclass="MainMenu_SubMenuItemSel"                                                                                                        
submenuitembreadcrumbcssclass="MainMenu_SubMenuItemBreadcrumb"                                                                                        submenuitemactivecssclass="MainMenu_SubMenuItemActive"                                                                                                                                   
separator=""/>

Any ideas?

 
New Post
10/23/2008 4:16 AM
 

if you are working on a new skin, it would be advisable to use DNNNavMenu instead of SolpartMenu. Solpart menu is quite old, has lots of xhtml/css issues and is no longer being developed


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
10/23/2008 5:18 AM
 

...Now i find that out, just as i get it close to how i wanted.  Thanks for letting me know anyway

 
New Post
10/23/2008 5:50 AM
 

Ok so i've tried replacing the solpartmenu with the nav bar but i'm having even more css problems with that.  Some parameters work others don't.  I am trying to make each item the same width and give submenu items padding.  Heres what i have so far:

<dnn:NAV runat="server" id="dnnNAV" ProviderName="DNNMenuNavigationProvider"
CSSControl="NavMenu"                                               
CSSNode="NavMenu_MenuItem"
CSSNodeRoot="NavMenu_RootMenuItem"
CSSContainerSub="NavMenu_ContainerSub" />

CSS:

.NavMenu {  }
.NavMenu_MenuItem {
    background-color:#5F9AB8; color: white; font-family: Arial, Helvetica; font-size: 12px; padding: 2px 4px 2px 4px; }
.NavMenu_RootMenuItem {
    cursor: pointer; background-color:Aqua; color:White; font-family: Arial, Helvetica; font-size: 14px; padding: 0px; }
.NavMenu_ContainerSub { background-color:#5F9AB8 }

No matter where i put the padding the sub menu items never have any.  Anyone know where it goes?

 
New Post
10/23/2008 5:52 AM
 

Nevermind figured out the padding bit seconds after i posted.  Need a .NavMenu_MenuItem td {} class.  As for the width of each item i still can't figure that out yet.

EDIT:

Well nearly there.  Seems the NAV bar is just as buggy and strange as the solpart menu.  Got the root items width set correctly in ie but not ff.

EDIT #2:

Ok figured it out needed: span { display:inline-block; }

 

.NavMenu

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...solpartmenu ignores css when submenu item is selectedsolpartmenu ignores css when submenu item is selected


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