View Full Version : Is there a limit to the z-index?
10-13-2004, 06:26 AM
I was sort of wondering if there was a limit the z-index property. And if so, is there a trick of over-comming this limitation?
10-13-2004, 06:58 AM
I do not believe so -- I've only gone up to 99 to test it, but you should be able to go even farther... but I wouldn't see why you'd need 99 or more levels unless you were playing around.
10-13-2004, 07:02 AM
I asked because i thought i read somewhere that the z-index property went as high as 26. How then would i go beyond 26? Do i simply continue to go onto the next number, like 27, 28, and so on, and on?
10-13-2004, 07:15 AM
When I test elements with z-indexes, I usually go by tens, 10, 20, 30, 40...150, 160, etc. That way I could add other things in between if needed.
Never had a problem.
10-13-2004, 11:38 AM
z-index is unlimited.
10-13-2004, 03:43 PM
On a whole other matter: if you find yourself needing more than 26 z-index levels, bells should start to ring, horns should toot, warning lights should flash...
As Liorean already stated, as far as I know there's no real limit to the value for z-index; I've seen values like 100, 200, 300, 400... The number of actually stacked levels though is a whole different story and probably depends on what a particular browser can cope with.
10-13-2004, 05:18 PM
Just to avoid possible browser bugs I would limit the z-index to +/-32767 which really ought to be big enough to handle just about anything.
10-13-2004, 10:03 PM
I agree, keep your z-index numbers between 0 and 32thousand and you should be alright. :D
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.