Search code examples
css-positionabsolute

How can I find an element I can't see so I can position it correctly?


I've got an element it's position: absolute, and left:0;

As soon as I put in top:0; it disappears. I know it's there somewhere but I can't work out where. I tried increasing top by 10px at a time and decreasing by -10px at a time but it doesn't show up.

Is there any way I can see where it is positioned on the page easily so I can work out what I am doing wrong and bring it into view?


Solution

  • I don't know why left: 0; worked and top: 0; caused a problem but I added position: relative; to the parent which allowed me to see my element and position it.