z index css command - does anyone know what this is??

Discussion in 'CSS' started by fadetoblack22, Oct 30, 2008.

  1. #1
    I am using this tutorial to make some tooltips:

    http://shailkpatel.blogspot.com/2007/10/css-tooltip-on-mouse-hover.html

    In the code there is something called z-index. I don't know what it is, but when I take it out the code still works.

    I don't really want to leave it in there if its not doing anything, but I may be missing something.

    Does anyone know?

    thanks
     
    fadetoblack22, Oct 30, 2008 IP
  2. skateme

    skateme Peon

    Messages:
    162
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The z index is just the order of the elements on your page. For example, suppose you have some text that you want floating on top of an image, you wouldn't be able to do this with standard positioning because they don't support overlapping. When you set the z index, you are specifying whether elements will overlap or not. The lower the z index, the lower it will be on the hierarchy. The higher the z index, the higher it will be on the hierarchy. Make sure you set a position value for the element, or it won't work :)
     
    skateme, Oct 30, 2008 IP
  3. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #3
    thanks :) it makes sense now.
     
    fadetoblack22, Oct 30, 2008 IP