Z-INDEX not working

Started by memokal, February 05, 2017, 03:50:42 PM

Previous topic - Next topic

memokal

I need to arrange my SMF menu front of that smf action page.  And actually i want it to be front always. Z-index not working.

image links :
http://i.hizliresim.com/pXZYJq.png [nofollow]
http://i.resimyukle.xyz/J6Tb.png [nofollow]
http://www.imgim.com/6768incii7987671.png [nofollow]

d3vcho

Can you leave the (css) code you're actually using for the menu?
"Greeting Death as an old friend, they departed this life as equals"

memokal

Quote from: d3vcho on February 05, 2017, 04:02:25 PM
Can you leave the (css) code you're actually using for the menu?

Hello Thanks for answering.

This is the list's css :
.topnav li ul{
    position: absolute;
    width: auto;
    left: -999em;
    padding: 5px 0;
    background: #000;
    border: 1px solid #fff;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.6);
}

.topnav, .topnav ul{
   margin: 0;
    padding: 0;
    z-index: 1000;
}
image :
http://i.hizliresim.com/8P492A.png [nofollow]
http://i.resimyukle.xyz/5V4O.png [nofollow]
http://www.imgim.com/8015incim6011340.png [nofollow]


This is Div css of Like Datas :
.like_post_stats_data {
    width: 100%;
    position: relative;
    overflow: hidden;
}
image:
http://i.hizliresim.com/41BZrJ.png [nofollow]
http://www.imgim.com/3648incio2174794.png [nofollow]

memokal

This issue started when i removed the Like Mod and Reinstalled the mod. And this page is an action page of that mod. Can someone imagine why it could be?

memokal

HELLO, I SOLVED the problem. I literally did that :

Added :
position:relative;
z-index:-1;
into these two :
.like_post_stats_data
#content_section



d3vcho

Haven't had a chance to answer you before, but yes, z-index can only be used with an element with position property (relative/fixed/absolute).
"Greeting Death as an old friend, they departed this life as equals"

Advertisement: