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, ...Cannot style root menu without it affecting module menuCannot style root menu without it affecting module menu
Previous
 
Next
New Post
6/15/2010 11:44 PM
 
Using the DNN Nav.  I have been trying to change the root menu background images (the icn and txt) but it is changing the module menu background on hover.  The module menu down arrow is also picking up the background of the root menu.  Arggh.

I tried copying the module menu styles out of the DNN-Blue module CSS, but that had no impact.

   Here is the relevant CSS code:

-------------------------------

/* Main Menu */
.mainMenu .root   { padding:0px 0px 0px 10px; color: #5b2a02; font: bold 16px Arial; text-align:center; display:block; white-space:nowrap; float:left; position:relative;} /* background:url(images/menu_sep.jpg) left top no-repeat; */

.mainMenu .root.first { background:none;}

.root .txt    { padding-top: 10px; padding-bottom: 10px; padding-left:5px; padding-right:14px; display:block;}

.root.hov .txt   { background:url(MenuOnR.png) 100% 0px no-repeat; }

.root.hov .icn   { background:url(MenuOnL.png) no-repeat; width:10px; height:40px; display:block; float:left; position:absolute; left:0px; top:0px;}

.root.sel .txt   { background:url(MenuOnR.png) 100% 0px no-repeat;}

.root.sel .icn   { background:url(MenuOnL.png) no-repeat; width:10px; height:40px; display:block; float:left; position:absolute; left:0px; top:0px;}

/* Sub Menu Style */
.mainMenu .m .hov .icn{
 height:0px;
 width:0px;
 background:none;
 position:relative;
  }

.mainMenu .m .sel .icn{
 height:0px; width:0px;
 background:none;
 position:relative;
 left:0px;
 top:0px;}

.mainMenu .m .sel .txt{
 background:none;}

.mainMenu table{
 border:1px solid #4E4E4E;
 background:url(submenu.png) repeat #FFF;}

.mainMenu table .txt{ 
 display:block;
 float:none;
 text-align:left;
 font-size:12px;
 font-weight:normal;
 padding:6px 8px 6px 8px;
 color:#292929;
 background:none; }

.mainMenu table .hov {
 background:#6F6F6F; 
 }

.mainMenu table .hov .txt{
 color:#fff;}

.DataGrid_Item{
 font-size:11px;}
.DataGrid_AlternatingItem{
 font-size:11px;}

.DNNEmptyPane{
 display:none;}

.ModuleTitle_Menubar,
.ModuleTitle_MenuItem,
.ModuleTitle_MenuItem .m .hov .icn,
{
 border: white 0px solid; /*override borders*/   
 background: #FFF;
}

.ModuleTitle_MenuItem TD {  /*TD if menu is using tables*/
 cursor: pointer;
 cursor: hand;
 color: black;
 font-family: Tahoma, Arial, Helvetica;
 font-size: 9pt;
 font-weight: bold;
 font-style: normal;
 height: 21px;
    white-space: nowrap;  /*Word wrapping menu item now optional*/
    padding: 1px 3px 3px 1px;
 background:none;
}

.ModuleTitle_MenuIcon {
 cursor: pointer;
 cursor: hand;
 background-color: #EEEEEE;
 width: 15px;
 height: 100%;   /*override the default height for icon so that menubreaks can have heights adjusted*/
}

.ModuleTitle_SubMenu
{
 z-index: 1000;
 cursor: pointer;
 cursor: hand;
 background-color: #FFFFFF;
 filter:progid:DXImageTransform.Microsoft.Shadow(color='DimGray', Direction=135, Strength=3);
 padding: 1px 1px 1px 1px;   /*explicitly set padding for sub-menus */
}

.ModuleTitle_MenuBreak  {
 background-color: #EEEEEE;
 font-size: 1px; /*make sure you take out portal.css ModuleTitle_MenuBreak for this to work*/
}

.ModuleTitle_MenuItemSel {

 cursor: pointer;
 cursor: hand;
 color: black;
 font-family: Tahoma, Arial, Helvetica;
 font-size: 9pt;
 font-weight: bold;
 font-style: normal;
 background-color: #C1D2EE;
}

 
New Post
6/16/2010 5:08 AM
 

This is happening because you are using css selectors that are present in both menu systems. eg .txt

What you need to do is target this to just the nav menu by using the .mainMenu selector first. So where you have .root .txt, try .mainMenu .root .txt. .root .txt targets all the elements with a txt class located within all elements of a root class (which both menus have). By adding the mainMenu class, it's only doing this to items located in the mainMenu element.

Hope this helps,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
6/18/2010 11:36 PM
 
So if I understand correctly... To target the submenu items I would add the CSS prefix: i.e. mainMenu .root .txt. So how do I target the root level only besides using only .root .txt?
 
New Post
6/19/2010 12:26 AM
 
BTW, that did help resolve the module menu issue. In the DNN NAV menu, in IE only, I notice the background image I want to only appear on the root level (parent level) is sneaking in behind the submenu items as I mouse over them. So instead of a gray bar just highlighting the submenu items its the gray bar + background:url(MenuOnR.png)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Cannot style root menu without it affecting module menuCannot style root menu without it affecting module menu


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