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, ...dnnNav with Unordered Lists not workingdnnNav with Unordered Lists not working
Previous
 
Next
New Post
7/26/2011 10:51 AM
 
So I updated my ASCX skin with the following code:
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.Skins" Assembly="DotNetNuke" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>


And....

<div id="mainMenu">
            <dnn:Nav runat="server" id="dnnNav" ProviderName="DNNMenuNavigationProvider" Tooltip="Title" ControlOrientation="Horizontal" ControlAlignment="Left" IndicateChildren="False" CSSControl="mainMenu" />
<CustomAttributes>
                                    
                                      <dnn:CustomAttribute Name="RenderMode" Value="UnorderedList"/>
                                </CustomAttributes>
                             </dnn:NAV>
             </div>



1.  The unordered list isn't happening.  It is still wrapped in <span> tags. 
2. It seems to be picking up some CSS but just the #mainMenu... not the rest of them....
Here is the CSS:

#mainMenu {
  padding: 0px 0px 0px 0px;
  position: relative;
  color: white;
}
#mainMenu .root {
  float: left;
}
#mainMenu .mi a {
  color: white;
  font-size: 120%;
  font-family: "Franklin Gothic Medium";
  display: block;
  position: relative;
  padding: 20px;
}
#mainMenu .mi a:hover {
  color: #e3af13;
  text-decoration: none;
  display: block;
}
#mainMenu .mi a:active {
  color: #e3af13;
  text-decoration: none;
  display: block;
}
#mainMenu .mi a.selected {
  color: #e3af13;
  text-decoration: none;
  display: block;
  position: relative;
}
#mainMenu .mi.selected {
  position: relative;
  background-image: none;
}
#mainMenu .mi.selected a {
  color: #e3af13;
  font-size: 120%;
  font-family: "Franklin Gothic Medium";
  display: block;
  position: relative;
}
#mainMenu .mi.selected a:hover {
  color: #e3af13;
  text-decoration: none;
  display: block;
  position: relative;
}
#mainMenu .mi.selected a.selected {
  color: #e3af13;
  text-decoration: none;
  display: block;
  position: relative;
}

So why is my unordered list not working and why won't it pick up my CSS?

Thanks!
Tanya
 
New Post
8/17/2011 10:46 AM
 
I would suggest using DDRMenu: http://www.dnngarden.com/. You can use any markup you want.

It's also standard in DNN6.
 
New Post
8/17/2011 10:49 AM
 
I'm not going to disagree with using the DDR Menu; however, if you are wanting to use the DNNNav, I have a blog post about styling it here: http://www.ralphwilliams.com/home/ent...

Hope that helps.


Ralph Williams, Jr.
UX Designer / Front-End Web Developer
www.RalphWilliams.com
Ralph Williams Consulting
Twitter: twitter.com/ralphwilliams

Professional DNN7: Open Source .NET CMS Platform
 
New Post
8/18/2011 3:55 PM
 
Turns out there was something wrong in my code.  When I recopied the <dnn:nav> section again from another website, it fixed the issue.  I'm still learning the ropes with the CSS but getting the hang of it.  But I will definitely look into those links posted.  Thanks for the replies! :)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...dnnNav with Unordered Lists not workingdnnNav with Unordered Lists 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