html

Z-Index Maximum and Minimum Values

Posted on

Quick answer to a query we got asked the other day.
Does the css property z-index have a maximum value?

The answer is yes.
The maximum value for z-index is 2147483647.
The minimum value for z-index is 0.
Occasionally you may see a negative z-index e.g. z-index:-1, this is not supported by all web browsers however.

It’s also worth noting that z-index only applies to elements which are positioned using position: relative or position: absolute.

This entry was posted in Web Development. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>