About z-index

What determines the level of z-index?

header {
background-color: #333333;
position: fixed;
width: 100%;
z-index: 5;

1 Like

Hey @hanbhin,

That does not really matter as longs at the element you want to show on top has the highest number.
Note, z-index only works with items which are outside of the html flow. (i.e. position: fixed).

More info on that:

1 Like

I really appreciate your reply, Thanks a lot!!