Component position changing when opening developer portal
Hello, I've been trying to work on frontend mentors' exercises. In the one I'm currently doing, when I open my developer portal, the height and position of the component change. Here's my code:
What could the issue be?
1 Reply
You are using
h-screen
which sets the height to entire viewport height. So when the devtools opens, visible height and width changes and your layout adjusts accordingly depending on the available space around it. You can fix it with min-h-screen
what this will do is that it'll allow contents to grow beyond the screen, rather than forcing everything into the available space/window.