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.)


css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: