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, ...DNN:Nav sub container doesnDNN:Nav sub container doesn't work with fixed position
Previous
 
Next
New Post
12/22/2011 12:46 AM
 

When using the menu inside a fixed div position, it seems the submenu container sets the top position in the wrong spot thus not working at all.  I am needing the fixed position for scrolling purposes throughout site, but really need this to work.

Thoughts?

I am trying to use the following:

     <div id="submenu">
        <div class="nav-info">
              <div id="nav" class="nav">
                <dnn:NAV runat="server" id="dnnNAV" Level="Root"  ProviderName="DNNMenuNavigationProvider" 
                    CssControl="" IndicateChildren="false" PopulateNodesFromClient="True" CSSContainerSub="submenu-wrap">
                <CustomAttributes><dnn:CustomAttribute Name="RenderMode" Value="UnorderedList" /></CustomAttributes>
                </dnn:NAV>
                </div>
        </div>
    </div>

The CSS looks like:

#submenu{position:fixed;left: 0;top:0;width:100%;margin:0 auto;background: #2f3d4a no-repeat top center;border-bottom:solid 1px #000d15;}
            .nav-info{margin: 0 auto;width:1064px;max-width:1064px; min-width:1064px;}
.nav{margin:0 auto;width:1064px;float:left;border-left-style: solid;border-left-width: 1px;border-left-color: #000d15;}
.nav ul {padding: 0;margin: 0;list-style: none;}
.nav li{float: left;border-right-color: #000d15;border-right-width: 1px;border-right-style: solid;display:inline !important;background: #2f3d4a;padding-right: 10px; padding-left: 10px;position:relative;}
.nav li:hover{background: #5c6c78 url(images/fabric-bg.jpg) repeat top left;z-index:10000;} 
.nav li.bc{}
.nav a, .nav a:visited, .nav a:link{letter-spacing: 1px;font-size: 14px;color: #ffffff;text-shadow: 1px 1px 1px #2f3d4a;}
.nav a:hover, .nav a.hov{text-decoration:none;}
.nav li.bc a, .nav .sel a, .nav a:active{color:#fff;}
.nav li.bc a:hover, .nav .sel a:hover, .nav a:active:hover{}
.nav .submenu-wrap{margin:0 auto;float:left;display:block;z-index:1001;top:25px;
                  border-right-color: #000d15;border-right-width: 1px;border-right-style: solid;
                  border-bottom-color: #000d15;border-bottom-width: 1px;border-bottom-style: solid;
                  border-left-color: #000d15;border-left-width: 1px;border-left-style: solid;
                  border-top-color: #000d15;border-top-width: 1px;border-top-style: solid;}
.nav .submenu-wrap li{float:none;display:block !important;background: #2f3d4a;padding-right: 10px; padding-left: 10px;height:25px;}
.nav .submenu-wrap li.last{border-bottom:none;height:25px;}
.nav .submenu-wrap li:hover{background: #5c6c78 url(images/fabric-bg.jpg) repeat top left;}
.nav .submenu-wrap li.bc, .nav .submenu-wrap li:hover a, .nav .submenu-wrap li.bc a{cursor:pointer;color:#fff;height:25px;}
.nav .submenu-wrap a, .nav .submenu-wrap a:visited, .nav .submenu-wrap a:link{font-size:12px;color:#fff;text-shadow:none;height:25px;}
.nav .submenu-wrap a:hover, .nav .submenu-wrap a.hov{color:#fff;border:none;height:25px;}
.nav .submenu-wrap li.bc a, .nav .submenu-wrap .sel a, .nav .submenu-wrap a:active{color:#fff;height:25px;}
.nav .submenu-wrap img{padding-right:10px;}





 
New Post
12/23/2011 12:02 AM
 
Any help on this, I can't get the sub menus to stop auto generating the style attribute which is causing the issue......
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN:Nav sub container doesnDNN:Nav sub container doesn't work with fixed position


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