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, ...How to override the root node background-image in the [NAV]?How to override the root node background-image in the [NAV]?
Previous
 
Next
New Post
9/5/2008 4:16 AM
 

Hi,

I am using DotNetNuke 4.4.1 and have a problem of overriding the background-image for the root node which has submenu under it. 

.main_dnnmenu_rootitem does not override the background image of the root node which has the submenu.

It is still use the default background-image url(/dotnetnuke/images/menu_down.gif).

Here is the screen shot of the issue. 

Picture for css of root nodes with Submenu http://www.eastgroup.com.au/cssoverride.JPG

Pckture for css of root nodes with no Submenu http://www.eastgroup.com.au/cssoverride_1.JPG

How do i achieve the override image for that?  Please help... Thank you advance.

[NAV] setting in skin.xml

      <Setting>
        <Name>CSSNodeRoot</Name>
        <Value>main_dnnmenu_rootitem</Value>
      </Setting>

My CSS

.main_dnnmenu_container {
 background-color: transparent;
}
.main_dnnmenu_bar
{  
 cursor: pointer;
 cursor: hand;
 height:20px;
 background-color: Transparent;
}

.main_dnnmenu_item td { /*TD if menu option for using tables is on*/

 cursor: pointer;
 cursor: hand;
 color: #000000;
 font-size: 9pt;
 font-weight: bold;
 font-style: normal;
 background-color: Transparent;
 font-family: Tahoma, Arial, Helvetica;
        white-space: nowrap;  /*Word wrapping menu item now optional*/
        padding: 1px 3px 3px 1px; 
}

.main_dnnmenu_rootitem  { /*TD if menu option for using tables is on*/
 background: #FFFFFF url("graphic/ButtonBG_off.gif") left no-repeat;
 width:109px;
 cursor: pointer;
 cursor: hand;
 color: #000000;
 font-size: 9pt;
 font-weight: bold;
 font-style: normal;
 background-color: Transparent;
 background-image:url(graphic/ButtonBG_off.gif);
 font-family: Tahoma, Arial, Helvetica;
    white-space: nowrap;  /*Word wrapping menu item now optional*/    
    padding: 2px 0px 0px 0px;   /*explicitly set padding for root menu items*/
    height:20px;
    text-align:center;
   
}

.main_dnnmenu_HoverRoot
{
 background: #FFFFFF url("graphic/ButtonBG_on.gif") left no-repeat;
}

.main_dnnmenu_itemhover { 
 background-color: #e6e8ec;
}

.main_dnnmenu_itemhover td { 
 background-color: #e6e8ec;
}

.main_dnnmenu_icon {
 cursor: pointer;
 cursor: hand;
 text-align: center;
 width: 0px;
 height: 100%;
 visibility:hidden;
}
.main_dnnmenu_submenu
{
 width:109px;
 background-color: #ffffff; 
 border:solid 1px #000000;
 z-index: 1000;
 cursor: pointer;
 cursor: hand;
 filter:progid:DXImageTransform.Microsoft.Shadow(color='#696969', Direction=135, Strength=3);
 padding: 1px 1px 1px 1px;   /*explicitly set padding for sub-menus */
}
.main_dnnmenu_break {
 height: 1px;
 font-size: 1px;
}

.main_dnnmenu_arrow
{
 border-right: #cad5ea 1px solid;
 border-bottom: #cad5ea 1px solid;
 border-top: #cad5ea 0px solid;
 font-family: webdings;
 font-size: 10pt;
 cursor: pointer;
 cursor: hand;
 visibility:hidden;
}
.main_dnnmenu_rootmenuarrow
{
 /*
 font-family: webdings;
 font-size: 10pt;
 cursor: pointer;
 cursor: hand;
 */
 visibility:hidden;
}

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to override the root node background-image in the [NAV]?How to override the root node background-image in the [NAV]?


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