https://github.com/KaanAlper/Discord-Card
On desktop browsers I can use it up to 125%, after that the content disappears.
In phone nothing is visible directly
I tried deleting the container and leaving the content directly, but even then the background gets bigger and smaller, apart from the buttons. Frankly, I’m just learning this language. Sorry in advance.
2
Answers
The issue is this block of code in your css:
I’m not sure what you are trying to do with the
:last-child
pseudo-selector, but because you only have one.card
element, it is both the first and the last child, so it gets hidden on screens smaller than 1470px. Browsers will apply mobile styles based on the zoom percent. If you want to know why, this is a great answer.In the styles.css file you have:
By enlarging the page using zoom, the browser’s viewport remains the same, but it begins to respond to break points in slightly different places, depending on how much you zoom in or out. This code:
makes it disappear unexpectedly because you accidentally trigger this breakpoint by zoom in.
Regards!