Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know the z-index of two elements

I have two carousels which one of them is set to absolute and a toggle button above them which switches them out when I switch to the second one.

I can't click it, I feel the error is from z-index but I didn't set any z-index on any of the elements, is there a plugin to view their z-index?

like image 258
samuelorobosa Avatar asked Oct 24 '25 02:10

samuelorobosa


2 Answers

If you are using chrome, you can check it in developer tools.

Right click on the element you want to check and inspect element. Switch to elements tab in developer tool then click on computed tab. It shows you all computed styles in alphabetical order.

enter image description here

like image 111
Engin Avatar answered Oct 26 '25 18:10

Engin


Maybe I missed the point of the question, but simply using 'inspect' on Firefox or Chrome will allow you to see all styling properties on all element.

To get there:

  1. Right click the element you want
  2. Select 'inspect element'

firebug as you can see the header of this very page has a z-index value of 5050

like image 38
Scott Anderson Avatar answered Oct 26 '25 16:10

Scott Anderson