alain
02-27-2008, 01:56 PM
Hi,
i'm facing an interesting problem with z-index.
usually i do not have it, but for sure something is hidden and now i'm confused.
so i need an external eye.
i have a link with allows user to change web page language.
when mouse is over it it should display a div with all available languages + pictures.
this works well except that whatever value of z-index i have for this div, every time is behind other divs with z-index < -2 till -4.
i tried to give to this menu div a z-index of 0 or 100. but still the same issue.
where could be the stupid issue ?
here is the mouse out status picture : http://i220.photobucket.com/albums/dd277/alainroger/menu---mouse-out.jpg
and here is the mouse over status picture :
http://i220.photobucket.com/albums/dd277/alainroger/menu---mouse-over.jpg
here is my webpage code :
<a href="#" id='BtnLang_txt' onmouseover = 'DisplayDivLanguage("LanguageMenu",this.id);' onmouseout = 'HideDivLanguage("LanguageMenu");'>Change(english)</a>
<div id='LanguageMenu'>test<img id='service_development_img' src='../themes/images/welcome/development.jpg' /></div>
and here is the CSS extract:
#LanguageMenu
{
float : right;
z-index : 100;
display : none;
background-color : #FF00FF;
margin : 30px 0px 0px 0px;
}
i'm facing an interesting problem with z-index.
usually i do not have it, but for sure something is hidden and now i'm confused.
so i need an external eye.
i have a link with allows user to change web page language.
when mouse is over it it should display a div with all available languages + pictures.
this works well except that whatever value of z-index i have for this div, every time is behind other divs with z-index < -2 till -4.
i tried to give to this menu div a z-index of 0 or 100. but still the same issue.
where could be the stupid issue ?
here is the mouse out status picture : http://i220.photobucket.com/albums/dd277/alainroger/menu---mouse-out.jpg
and here is the mouse over status picture :
http://i220.photobucket.com/albums/dd277/alainroger/menu---mouse-over.jpg
here is my webpage code :
<a href="#" id='BtnLang_txt' onmouseover = 'DisplayDivLanguage("LanguageMenu",this.id);' onmouseout = 'HideDivLanguage("LanguageMenu");'>Change(english)</a>
<div id='LanguageMenu'>test<img id='service_development_img' src='../themes/images/welcome/development.jpg' /></div>
and here is the CSS extract:
#LanguageMenu
{
float : right;
z-index : 100;
display : none;
background-color : #FF00FF;
margin : 30px 0px 0px 0px;
}