Login-Screen on narrow Desktop-Browser:
Login-Screen on mobile Device:
Both sides have the same width and height and the exact same CSS-Code.
Why does it look different and how can I change it?
If i try using
@media screen and (max-width: 520px){ ... }
to change the width of the div it looks better on mobile but different and worse on Desktop.
This is a very useful tag you can put in your head tag. Which is probably your issue
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
Don't use narrowing the desktop size for viewing your website in the mobile
Instead use the the mobile icon on the chrome developer tool in order to view what will appear on what screen size and accordingly use media query in CSS so that you can get what appearance you want on mobile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With