Previous Message
Next Message

how high can z-index be reliably?

Sent by Michael Geary on 8 September 2006 18:06


> From: Peter Michaux
> 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?

I don't think there is a specific limit - any integer will do. Browsers
don't go around counting from 1 to N where N is your z-index. They just
compare z-indexes to see which is greater.

As a point of comparison, Google Maps gives each map marker a z-index in the
range -9000000 to 9000000. (The default z-index for a marker is the marker's
latitude multiplied by -100000.)

-Mike

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: