@zauri-khutsishvili
Posted
Instead of using margins for centering you should use flexbox so it's in the middle of the screen at all screen sizes. Use this instead:
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
You can learn about Flexbox here and here. For learning CSS in general I recommend Kevin Powell's channel and his course on responsive design. You can also take a look at my solution.
Marked as helpful