z-index problem

Reply

Join Date: Jul 2007
Posts: 68
Reputation: php_noob is an unknown quantity at this point 
Solved Threads: 2
php_noob's Avatar
php_noob php_noob is online now Online
Junior Poster in Training

z-index problem

 
0
  #1
Aug 23rd, 2007
I have a problem, I have this tooltip scripting...

The tooltip goes at the back of the next image.


thanks guys

here is the script

a.info{
position:relative; /*this is the key*/
z-index:24; background-color:#FFF;
color:#000;
text-decoration:none}

a.info:hover{z-index:25;
background-color:#FFFFFF;
}

a.info span{display: none}

a.info:hover span{ /*the span will display just on :hover state*/
display:block;
position:absolute;
padding:2px;
top:0em; left:1em; width:15em;
border:1px solid #0cf;
background-color:#cff; color:#000;
text-align: left;
font-family:Tahoma, Verdana, Arial;
font-size:12px;
}

use image as link wrapped in a DIV!

thanks
Last edited by php_noob; Aug 23rd, 2007 at 10:16 pm. Reason: for more specific understanding of the problem
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 189
Reputation: martin5211 is an unknown quantity at this point 
Solved Threads: 14
martin5211 martin5211 is offline Offline
Junior Poster

Re: z-index problem

 
0
  #2
Aug 23rd, 2007
You could use for example z-index: -10; lower numbers will put an object in the background.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: z-index problem

 
0
  #3
Aug 24th, 2007
z-index is not well supported.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 189
Reputation: martin5211 is an unknown quantity at this point 
Solved Threads: 14
martin5211 martin5211 is offline Offline
Junior Poster

Re: z-index problem

 
1
  #4
Aug 24th, 2007
yes, it's true, but you can use a condition like this to deal with compatibility issues:

  1. <? if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') == true)) { ?>

I'm using z-index and I haven't see strange issues http://agec.ath.cx/lead maybe you could see a solution there

Web developer toolbar in firefox is a great tool to see CSS properties and change values on the fly.
Last edited by martin5211; Aug 24th, 2007 at 12:26 am.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: z-index problem

 
0
  #5
Aug 24th, 2007
Just a quick guess, but you may find it's the classes.

If I'm correct, you have multiples of these "image pop-ups", all with the same classes.
so if you think about it, you have multiple little boxes with popup layers, all basically overlapping each other.

The problem occurs for the Popups though...

You have applied a z-index to the Links (a:info) when inactive and when hovered over.... but not applied a z-index to the actual tooltip/popup!
Try adding z-index: 30; to a.info:hover span
see what that gets you.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC