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, ...DNNMenu separator graphic not workingDNNMenu separator graphic not working
Previous
 
Next
New Post
4/29/2008 1:10 PM
 

I'm working on a custom skin using DNNMenu instead of SolPartMenu for some vertical navigation. I'm trying to use CSS to control all of my navigation elements, but the one element that I can't get to function is the separator graphic. I was using this line in my .ascx code, which correctly inserted the graphic but resulted in all kinds of alignment problems between the graphic and the menu items:

SeparatorHTML="<img src=&quot;images/leftNavSep.gif&quot;>"


Following pg. 14 in the DotNetNuke Navigation WebControls document, I have this in my .ascx file:

            <dnn:NAV runat="server" id="dnnNAV"
            CssClass="leftNav"
            ProviderName="DNNMenuNavigationProvider"
            CSSContainerRoot="menucontainercssclass"
            CSSControl="menubarcssclass"
            CSSNode="menuitemcssclass"
            CSSNodeRoot="rootmenuitemcssclass"
            CSSBreadCrumbRoot="breadcrumbrootcssclass"
            CSSBreadCrumbSub="breadcrumbsubcssclass"
            CSSNodeSelectedRoot="rootmenuitemactivecssclass"
            CSSNodeHoverRoot="rootmenuitemselectedcssclass"
            CSSNodeSelectedSub="selectedsubmenucssclass"
            CSSNodeHoverSub="hoversubmenucssclass"
            CSSContainerSub="submenucssclass" 
            CSSSeparator="rootmenuseparatorcssclass" />

Everything is working, including the CSS, except for the CSSSeparator. Here's the CSS I have for that:

.leftPane .rootmenuseparatorcssclass {display:block; background-image:url(images/leftNavSep.gif); height:17px;}


The graphic URL path is working, I've checked that. When I view the source code of the page, it doesn't even look like my custom "rootmenuseparatorcssclass" is being put in there.

Any idea where I'm going wrong? Unfortunately this site is still on a local server so I can't post a URL or anything, sorry.

 
New Post
4/29/2008 1:50 PM
 

You might want to check how menu items are being rendered. If I remember correctly, dnnNAV with the DNNMenuNavigationProvider renders item as <span>'s you could use the solpart rendering or declare these span as block elements:  rootmenuitemcssclass display: block

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
4/30/2008 2:36 PM
 

I am having the same issue, I've tried both the seperatorHTML and CSSSeparator approaches. Does anyone have any sample code for putting image separators between menu items?

 
New Post
6/4/2008 11:31 PM
 

Yeah, that is the same problem, Any thoughts would be so much appreciated! make the post to the up to focus on it!


sunblognuke v5 for dnn

Ultimate Blogging Module for DotNetNuke Platform
The professional provider of DotNetNuke support, skin design and custom module development.

 
New Post
6/5/2008 1:37 AM
 

you guy can ignore my above comment since I had find the way, you just add the style in you rootitemof the menu, for example:

.main_dnnmenu_rootitem  { /*TD if menu option for using tables is on*/
    cursor: pointer;
    cursor: hand;
    color: #345A98;
    font: 18px Arial;
    text-decoration: none;
   font-weight: bold;
   text-transform: uppercase;
   background-color: Transparent;
    white-space: nowrap;  /*Word wrapping menu item now optional*/    
    padding: 0px 12px 0px 5px;   /*explicitly set padding for root menu items*/
    margin-left:10px;
    border-right: 2px solid #fff;/* What I need exactly */
}


sunblognuke v5 for dnn

Ultimate Blogging Module for DotNetNuke Platform
The professional provider of DotNetNuke support, skin design and custom module development.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNNMenu separator graphic not workingDNNMenu separator graphic not working


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