SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: z-index issue

  1. #1
    SitePoint Zealot maileen's Avatar
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question z-index issue

    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/d...-mouse-out.jpg

    and here is the mouse over status picture :
    http://i220.photobucket.com/albums/d...mouse-over.jpg

    here is my webpage code :
    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:
    Code:
    #LanguageMenu
    {
    	float : right;
    	z-index : 100;
    	display : none;
    	background-color : #FF00FF;
    	margin : 30px 0px 0px 0px;
    }

  2. #2
    Design Your Site Team bronze trophy Erik J's Avatar
    Join Date
    May 2007
    Location
    Countryside, Sweden
    Posts
    3,407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To apply the z-index, also add position:relative.
    Happy ADD/ADHD with Asperger's

  3. #3
    SitePoint Zealot maileen's Avatar
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'm really nuts to forget such thing.
    thx for reseting my mind :-)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •