Z-index

A bit of a strange one, but we needed something for Z. This controls the order of items in HTML in terms of how they stack ontop of each other. The higher the z-index, the nearer the top of the stack they are.

So, for example, an item with a z-index of 10 sits above (on top of) an item with a z-index of 5.

Without any z-index CSS, elements appear in the order they’re included in the HTML.

To conclude...

Z-index controls the stacking of elements – the higher the number, the nearer the top of the stack they appear.


Back to WordPress glossary Get help with WordPress

Need help with your WordPress site?

If you need to improve your existing site or are looking to commission a new website, call us on 01295 266644 or complete the form - we'll get in touch!

Top