Forum Moderators: not2easy

Message Too Old, No Replies

Purpose of Z-index

         

kadnan

1:36 pm on Nov 29, 2006 (gmt 0)

10+ Year Member


Hello,

what is the use of Z-index and what's the minimum or maximum value?

The reason I asked that I have made a greaseMonkey script which just add a new DIV on runtime and move it on the movement of Mousemovement. It works fine most of the site but when tried with yahoo! search engine,it just displaced a bit and then got halted.

I am unable to figure out whether this is z-Index issue or what that same div can be moved on other websites but not on Yahoo

phranque

2:05 pm on Nov 29, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



the z-index sets the stacking order for [hint]positioned[/hint] elements.
i'm not sure if there is an actual (2n) limit, but it can essentially be any positive or negative integer or zero.
[w3.org...]

Robin_reala

3:59 pm on Nov 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As a side note, a quick flick through Moz's source [lxr.mozilla.org] suggests that 2147483647 is the biggest z-index possible [lxr.mozilla.org] which coincidentally is the maximum size of a signed 32-bit integer.

kadnan

10:16 am on Nov 30, 2006 (gmt 0)

10+ Year Member


Thanks for reply. Does Z-index makes any difference in movement of a DIV?