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, ...z-index not working?z-index not working?
Previous
 
Next
New Post
7/12/2010 10:08 AM
 
I'm trying to change a skin so that the logo is in front of the main menu part.  I put a z-index of 999 for the logo in css and 0 for the menu.  The menu is still in front of the logo.  Any ideas as to what i'm doing wrong?   Here's the asp portion:

<div class="content_left">
<div class="content_right">
<div class="dnn_content">
<div class="dnn_logo"><dnn:LOGO runat="server" id="dnnLOGO" BorderWidth="0" /></div>
<div class="dnn_menu"><dnn:NAV runat="server" id="dnnNAV" ProviderName="DNNMenuNavigationProvider" IndicateChildren="false" ControlOrientation="Horizontal" CSSControl="mainMenu" /></div>
</div></div></div>

And the css styles that accompany these:

.content_left{

background:url(images/content_left.png) left top repeat-y; border:2px solid white; padding:6px 6px 6px 6px; z-index:-1;}

.content_right{

background:url(images/content_right.png) right top repeat-y; z-index:-1;}

.dnn_content{

background:#fff; margin: 0 0px; z-index:-1;}

.dnn_logo{

float:left; padding:0px 5px 5px 5px; margin-top:-35px; z-index:999;}

.dnn_menu{

clear:both; height:35px; background:#423839 repeat-x; padding-left:250px; position:relative; width:600px; left:55px; bottom:93px;

-moz-border-radius: 10px; -webkit-border-radius: 10px; khtml-border-radius: 10px;

behavior: url(/DotNetNuke/Portals/_defaul/Skins/Go/border-radius.htc); border-radius: 10px;

z-index:0;}

I've tried moving the menu div before the logo div and the menu is still in front of the logo.  Any ideas of what I'm doing wrong?

 
New Post
7/14/2010 4:17 PM
Accepted Answer 
You probably need to specify the position selector. For example:
.dnn_logo {position:relative; z-index:999} 
 From http://www.w3schools.com/Css/pr_pos_z-index.asp

 "Note: z-index only works on positioned elements (position:absolute, position:relative, or position:fixed)."

 Hope that helps.
 
New Post
7/16/2010 9:09 AM
 
Wow, can't believe it was something so simple.  Thank you very much!!!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...z-index not working?z-index 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