Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-28-2012, 12:29 PM   PM User | #1
jarv
Banned

 
Join Date: Mar 2007
Posts: 1,523
Thanks: 116
Thanked 0 Times in 0 Posts
jarv can only hope to improve
Question Link is in HTML but not working

Hi, on my website: http://aet.inpreview.net/test/wordpress/ my fading banners are linked but I can't click on them?!

Can anyone please help?

thanks
jarv is offline   Reply With Quote
Old 05-28-2012, 01:25 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
It's because you have set z-index:-1; on #banners. You need to use positive z-indexes to get it work.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 05-28-2012, 01:43 PM   PM User | #3
Lerura
Regular Coder

 
Lerura's Avatar
 
Join Date: Aug 2005
Location: Denmark
Posts: 869
Thanks: 0
Thanked 112 Times in 111 Posts
Lerura will become famous soon enough
in aet.css you have #banners { z-index: -1; .....}

by assigning a negative z-index you make it display behind that the document and thereby it becomes unclickable.

Imagine that the viewport, as a piece of glass, (like a window). on which the document is attached.
elements with zero, no, or positive z-index will be placed i front of the glass, the higher z-index, the closer to you.

While negative z-indexed elements will be displayed behind the glass.

Have you ever tried to slap a fly sitting on the outside of a window, from the inside?
Maybe you have, but I bet you, in that case, were unsuccesful.

I know you have the negative z-index to put #banners behind #myslidemenu

Instead you can put #myslidemenu in front of #banners by giving it z-index:1
or by swapping the code blocks.
Code:
<div id="myslidemenu">...</div>
<div id="banners">...</div>
to
Code:
<div id="banners">...</div>
<div id="myslidemenu">...</div>
Any way, you have to remove the negative z-index in order to make it clickable.

beside that you have a tried on other element to assign z-index:10px; z-index is not a distance, but more like a rank, where those with the lower rank must go first.
Lerura is offline   Reply With Quote
Reply

Bookmarks

Tags
links

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:02 PM.


Advertisement
Log in to turn off these ads.