| | |
z-index problem
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
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
•
•
Join Date: Aug 2007
Posts: 189
Reputation:
Solved Threads: 14
yes, it's true, but you can use a condition like this to deal with compatibility issues:
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.
php Syntax (Toggle Plain Text)
<? 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.
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
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.
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.
![]() |
Similar Threads
- Dropdowns close when cursor over link underneath (DaniWeb Community Feedback)
- C++: compile error "subscripted value is neither array nor pointer" (C++)
- Array Index Problem in Quick Sort (C#)
- please anybody to help Dropdownlist selected index problem (ASP.NET)
- Forum lurkers, introduce yourself ... !! (Community Introductions)
Other Threads in the HTML and CSS Forum
- Previous Thread: Page "bleed" off edge
- Next Thread: CSS Menu Not Working on Mac
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






