---
title: "Discussion on \"WHAT IS CSS Z-INDEX PROPERTY? AND HOW DOES IT WORK?\" | Hashnode"
description: "Discussion on \"WHAT IS CSS Z-INDEX PROPERTY? AND HOW DOES IT WORK?\". Whenever we need to stack an element on top of another in CSS, we can do so using a property called the z-index. The z-index specifies the order in which these elements are overlapped.    \nThe value of the z-index property is an integer, the element ..."
url: "https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [WHAT IS CSS Z-INDEX PROPERTY? AND HOW DOES IT WORK?](https://dairoiyin.hashnode.dev/what-is-css-z-index-property-and-how-does-it-work?utm_source=hashnode&utm_medium=feed)

Whenever we need to stack an element on top of another in CSS, we can do so using a property called the z-index. The z-index specifies the order in which these elements are overlapped. The value of the z-index property is an integer, the element ...

Aug 9, 2020 · 3 min read · dairoiyin.hashnode.dev  
Updated Aug 11, 2020  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#html](https://hashnode.com/tag/html)

## Written by

[iyin Dairo](https://hashnode.com/@DairoIyin)

@DairoIyin · Lagos, Nigeria

  
[View profile](https://hashnode.com/@DairoIyin)

## Responses 8

Markdown supported · ⌘↵ to post

[Renee Fatogun](https://hashnode.com/@Renee04)

[Nov 15, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5fb09d34c03b0e471014fb90)

I understood quite well👍🏽

[Akinsola Michael](https://hashnode.com/@Dazco)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f32f1b12a23d9080d179f74)

Awesome breakdown of the css property, picked up a few things I wasn't aware of before.

[iyin Dairo](https://hashnode.com/@DairoIyin)

[Aug 12, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f32f1b12a23d9080d179f74#reply-5f34014f24a82e16a063391e)

Thank you so much ✨✨😊

[Williams Eni](https://hashnode.com/@Thewillyy)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f32dfe72a23d9080d179eec)

Nice read, Iyin. 👍

[iyin Dairo](https://hashnode.com/@DairoIyin)

[Aug 12, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f32dfe72a23d9080d179eec#reply-5f3401670745af167fc1446b)

Thank you so much✨✨

[Isaac](https://hashnode.com/@Zee_)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f32a8412a23d9080d179b13)

Nicely written article Iyin.

[iyin Dairo](https://hashnode.com/@DairoIyin)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f32a8412a23d9080d179b13#reply-5f32b3db2a23d9080d179bc4)

Thanks youuu 😊😊

[Nifemi Adeyemi](https://hashnode.com/@Oluwanifemi)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f32a7272a23d9080d179b03)

Thanks for this 🙌🏾✨

[iyin Dairo](https://hashnode.com/@DairoIyin)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f32a7272a23d9080d179b03#reply-5f32b3fd4332ee07eb55c860)

You're welcome ✨✨

[Salaudeen Ahmad](https://hashnode.com/@AdeolaAhmad)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f329c8f4332ee07eb55c716)

Well explained, looking forward to more of your articles

[iyin Dairo](https://hashnode.com/@DairoIyin)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f329c8f4332ee07eb55c716#reply-5f32b4264332ee07eb55c864)

Thank you so much ✨✨

[Nelson Michael](https://hashnode.com/@nmNelson)

[Aug 10, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f3145b7731208056eda326b)

thank you for explaining this

[iyin Dairo](https://hashnode.com/@DairoIyin)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f3145b7731208056eda326b#reply-5f3298fe2a23d9080d1799a3)

You're most welcome

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Aug 9, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f3079403348367b2fc3f8e3)

Beautifully explained [iyin Dairo](https://hashnode.com/@DairoIyin). Thanks for sharing.

[iyin Dairo](https://hashnode.com/@DairoIyin)

[Aug 11, 2020](https://hashnode.com/posts/what-is-css-z-index-property-and-how-does-it-work/5f3076db3348367b2fc3f88d/comment/5f3079403348367b2fc3f8e3#reply-5f32992f4332ee07eb55c6a5)

Thank you so much. 😊
