On 9/8/06, Peter Michaux <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I haven't seen a specification on how high I can set the z-index.
> Perhaps it is browser specific. Is going up to 9999 safe? What
> happens in browsers if the number is too high?

Hi, Peter,

As others have mentioned, you probably don't need to go that high.
Other issues will keep one item from overlapping regardless of the
z-index applied to it. See
http://css-discuss.incutio.com/?page=OverlappingAndZIndex for more
information on that.

Values of all kinds (z-index, pixel dimensions, etc.) will reach upper
limits that vary from browser to browser. The limiting factor is how
the browser was built by its developers. Browsers tend to be less
stable when you reach large numbers that are important to computers.
Common valid ranges include -32768 to 32767 (2 to the power of 16 --
65536 -- centered around the number zero) and -2147483648 to
2147483647 (2 to the power of 32 centered around the number zero). If
you go beyond numbers like this, all sorts of crazy things can happen.
The numbers can "wrap around", so that something like "left: -40000px"
might be reinterpreted as "left: 25535px" (where 25535 = 65535 -
40000).

Again, there should be little reason to use numbers that reach these
limits, if you're clear on how the CSS rules interact.

HTH,

Michael
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to