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 add images to a navigation barHow to add images to a navigation bar
Previous
 
Next
New Post
9/17/2009 10:13 AM
 

Hello,

 

I am using DNN for the first time and am trying to install a new skin.  I am using version 5.0 and was doing perfectly fine until the very last section, modifying the menu bar.

Having looked through the forum for dotnetnuke.com I have not been able to find an answer. 

I am wanting to be able to create a horizontal navigation bar with a black background set as a image called nav-bar.jpeg and an orange oval shaped image behind the text of each link called menu_icon.jpeg.

The css code I currently have for the menu is:

.menupane
{
    background-image: url (nav_bar.jpeg);
    background-color: #000000;
    background-position: left top;
    background-repeat:repeat-x;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

.MainMenu_MenuContainer {
    padding-left: 5px;
    padding-right: 7px;
    padding-top: 0px;
    border: 1px solid #000000;
    height: 63px;
}
.MainMenu_MenuBar {
    cursor: pointer;
    cursor: hand;
    height:62px;
    background-color: Transparent;
}
.MainMenu_MenuItem {
    background-image: url(menu_icon.jpeg);
    border-left: #000000 0px solid;
    border-bottom: #000000 1px solid;
    border-top: #000000 1px solid;
    border-right: #000000 0px solid;
    cursor: pointer;
    cursor: hand;
    color: #000000;
    font-size: 9pt;
    font-weight: bold;
    font-style: normal;
    background-color: Transparent;
    font-family: Tahoma, Arial, Helvetica;
    height: 50px;
}
.MainMenu_MenuIcon {
    background-color: #000000;
   
    border-left: #cad5ea 0px solid;
    border-bottom: #cad5ea 0px solid;
    border-top: #cad5ea 0px solid;
    cursor: pointer;
    cursor: hand;
    text-align: center;
    width: 15px;
    height: 50px;
}
.MainMenu_SubMenu {
    background-color: #fab913; 
    z-index: 1000;
    cursor: pointer;
    cursor: hand;
    filter:progid:DXImageTransform.Microsoft.Shadow(color='#696969', Direction=135, Strength=3);
}
.MainMenu_MenuBreak {
    height: 1px;
}
.MainMenu_MenuItemSel {
    background-color: #8da4d3;
    cursor: pointer;
    cursor: hand;
    color: black;
    font-family: Tahoma, Arial, Helvetica;
    font-size: 9pt;
    font-weight: bold;
    font-style: normal;
    height: 21px;
}
.MainMenu_MenuArrow {
    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;
}
.MainMenu_RootMenuArrow {
    font-family: webdings;
    font-size: 10pt;
    cursor: pointer;
    cursor: hand;
}

 

For the html menu section I have:

<tr>
                            <td valign="top">
                                <table cellpadding="0" cellspacing="0" width="100%" border="0">
                                    <tr>
                                        <td class="menupane" id="MenuPane" runat="server" height="62px" valign="top" align="left">[MENU]</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>

Please can someone advise how to sort this out.

Many thanks,

 

Trevor

 

 
New Post
9/18/2009 6:01 PM
 

The first thing that catches my eye is your containing the menu object. It looks like it's setup to be an editable pane that can have other modules added into it. Try removing the runat=server attribute (and possibly the class to avoid confusion when you create your CSS) as this section shouldn't need to have any other modules added to it. Then, move the height attribute over to the TR element (TR handles height definition much better in my experience). From there, you should have skin that renders the menu in the correct location. Beyond that, make sure you are assigning the class items to the Menu object inside your skin.xml file.

Something along these lines:

HTML:

<tr>
    <td valign="top">
        <table cellpadding="0" cellspacing="0" width="100%" border="0">
            <tr height="62px">
                <td id="MenuPane" valign="top" align="left">[MENU]</td>
            </tr>
        </table>
    </td>
</tr>

CSS:

#MenuPane  /* changed .menupane to #menupane to handle it being an ID now /*
{
    background-image: url ("nav_bar.jpeg");  /* Added quotes */
    background-color: #000000;
    background-position: left top;
    background-repeat:repeat-x;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

.MainMenu_MenuContainer {
    padding-left: 5px;
    padding-right: 7px;
    padding-top: 0px;
    border: 1px solid #000000;
    height: 63px;
}
.MainMenu_MenuBar {
    cursor: pointer;
    cursor: hand;
    height:62px;
    background-color: Transparent;
}
.MainMenu_MenuItem {
    background-image: url("menu_icon.jpeg"); /* Added quotes */
    border-left: #000000 0px solid;
    border-bottom: #000000 1px solid;
    border-top: #000000 1px solid;
    border-right: #000000 0px solid;
    cursor: pointer;
    cursor: hand;
    color: #000000;
    font-size: 9pt;
    font-weight: bold;
    font-style: normal;
    background-color: Transparent;
    font-family: Tahoma, Arial, Helvetica;
    height: 50px;
}
.MainMenu_MenuIcon {
    background-color: #000000;
  
    border-left: #cad5ea 0px solid;
    border-bottom: #cad5ea 0px solid;
    border-top: #cad5ea 0px solid;
    cursor: pointer;
    cursor: hand;
    text-align: center;
    width: 15px;
    height: 50px;
}
.MainMenu_SubMenu {
    background-color: #fab913;
    z-index: 1000;
    cursor: pointer;
    cursor: hand;
    filter:progid:DXImageTransform.Microsoft.Shadow(color='#696969', Direction=135, Strength=3);
}
.MainMenu_MenuBreak {
    height: 1px;
}
.MainMenu_MenuItemSel {
    background-color: #8da4d3;
    cursor: pointer;
    cursor: hand;
    color: black;
    font-family: Tahoma, Arial, Helvetica;
    font-size: 9pt;
    font-weight: bold;
    font-style: normal;
    height: 21px;
}
.MainMenu_MenuArrow {
    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;
}
.MainMenu_RootMenuArrow {
    font-family: webdings;
    font-size: 10pt;
    cursor: pointer;
    cursor: hand;
}


Wells Doty Jr
Online Content Development
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to add images to a navigation barHow to add images to a navigation bar


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