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, ...CSS Woes Skinning Menu Bar in DNN5CSS Woes Skinning Menu Bar in DNN5
Previous
 
Next
New Post
6/11/2009 10:11 AM
 

Hi there,

I am having a little difficulty skinning the menu bar in DotNetNuke 5 so was wondering if I could ask you guys for some advice.

Below is a screenshot of what I currently have,

At the moment the text labels are moving about when unselected/selected, but not on hover.  I'm not quite sure why but I guess I have done something drastically wrong with the CSS...

/*--------- dnn menu style ----------*/
/* main menu td */
.main_dnnmenu_bar
{
 cursor:pointer;
 font-size: 11px;
 background-color:transparent;
 width:970px;
}

/*  Main Menu Normal  */
.main_dnnmenu_rootitem 

 color: #375162;
 font-size: 13px;
 font-weight:bold;  
 text-align:center;
 text-transform:uppercase;
 white-space:nowrap;
 background:url(../images/menu_inactive.png) no-repeat;
 float:left;
 Width:76px;
 Height:85px;
}

.main_dnnmenu_rootitem span 

 color:#375162;
 position:relative;
 left:-32px;
 top:32px;
}

.main_dnnmenu_rootitem span.icn 

 position:relative;
 left:15px;
 top:10px;
}


/*  Main menu hover  */
.main_dnnmenu_rootitem_hover

 color:#ffffff;
 font-size: 13px;
 font-weight:bold;
 text-align:center;
 text-transform:uppercase;
 white-space:nowrap;
 background:url(../images/menu_hover.png) no-repeat;
 float:left;
 Width:76px;
 Height:85px;
}

.main_dnnmenu_rootitem_hover span 

 color:#ffffff;
 position:relative;
 left:-32px;
 top:32px;
}

.main_dnnmenu_rootitem_hover span.icn 

 position:relative;
 left:15px;
 top:10px;
}

/*  Main menu selected  */
.main_dnnmenu_rootitem_selected
{
 color:#ffffff;
 font-weight:bold;
 text-align:center;
 font-size: 13px;
 text-transform:uppercase;
 white-space:nowrap;
 background:url(../images/menu_active.png) no-repeat;
 float:left;
 Width:76px;
 Height:85px;
}

.main_dnnmenu_rootitem_selected span 

 color:#ffffff;
 position:relative;
 left:-32px;
 top:32px;
}

.main_dnnmenu_rootitem_selected span.icn 

 position:relative;
 left:15px;
 top:10px;
}

The icons are both 48x48 png images.  Basically I'm trying to get them in the middle of each button with the textual label in the middle of the bit below it.  At the moment if I remove the image the text moves too, this isn't so good, I'd rather they were completely independent but not sure if I can do this.

Any help would be greatly appreciated as CSS is not my thing :(

Nick.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS Woes Skinning Menu Bar in DNN5CSS Woes Skinning Menu Bar in DNN5


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