Full screen image zoomed mobile

Hi guys. I have a website which is not too mobile friendly yet. It is wider than the screen so it is zoomed out all the time. (I know I know, but this is the starting situation we have 🙂 ) I need a code to view images in a full screen overlay when they are clicked. I tried max-width/height: 100vw 100vh, but they are calculated based on the 100% zoomed version so the pictures are getting too small in the zoomed out state. Is there any solution to make a full screen img/div base on the vw and the zoom state? Thank you for your help in advance. I hope I made an appropriate question since this is my first time. 🙂
No description
3 Replies
clevermissfox
clevermissfox•7mo ago
If the user is zoomed out, under 100%, you want it to zoom out and look smaller ? For accessibility
Azyrum
Azyrum•7mo ago
Make the rest of the website mobile and your problem should go away
fisha
fisha•7mo ago
Sure, but this is not an option now. A basic view on mobile is something zoomed out, because of the too wide content. I woulf like to display a full screen image in this state with vw/vh 100. It looks like as the attached pic
Want results from more Discord servers?
Add your server
More Posts
flexBox overflowing underneath another flexbox even if the scorll possition is at topim trying to make a list and a header but the list contentents are overflowing underneth the headerHow to move Text-overflow:ellipsis dots when the parent and child ellipsis stacked on each other?I have list items in a container, i set the container fixed width and height. On each list items i tSQL Table DefinitionI'm trying to make a database for a TTRPG ([Fate, if you're wondering](<https://fate-srd.com/fate-coGrid system showing gapsI've been trying to figure out how to make a responsive grid, with some elements spanning 2 tiles, bPrevent spamming of api calls when Refresh is pressed or back + forward continuouslyWhat I need to do is store the user's results of the first call and then either cache or localstoragButton positioningHi guys im currently in need of moving a button that im using to in between the bottom left of the sHow to disable cache for a specific page?I have a website where people can upload there games, and play them. Every game has an embed image wCan't open squarespace local dev serveri Can't setup my squarespace local dev server, i went through the documentation Install the squarespTailwind CSS place-content: align-content/justify-content ?I only see single values on the official website, when this suppose to accept both values if wanted.Make Responsive Design with Rounded Image on the EdgeHi! I've been taking good looks into Kevin's tutorials, and in one of his tutorials with Figma, I ca