DDallavalle Posted September 28, 2023 Share Posted September 28, 2023 (edited) Hello! I've embedded my Figma prototype and am unsure how to get the device frame to display in the mobile view on my actual device. It's visible when viewing the mobile view on a desktop only. Also, the height of the mobile frame is clipped on my device. Does anyone have any suggestions? Webpage: https://www.danielleborisoff.com/iframe-test Embed code: <div style="padding-bottom:100%; position:relative; display:block; width: 100%"> <iframe width="100%" height="100%" src="https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Fproto%2FGyvp3zqubzq4tP1yw1nqFD%2FCapstone-Marketing-Site%3Fpage-id%3D57%253A6251%26type%3Ddesign%26node-id%3D57-6259%26viewport%3D793%252C496%252C0.13%26t%3D4refmqMFGP2NTcAR-1%26scaling%3Dscale-down%26hotspot-hints%3D0%26mode%3Ddesign" frameborder="" allowfullscreen style="position:absolute; top:0; left: 0"> </iframe> </div> Edited September 28, 2023 by DDallavalle Posted before complete Link to comment
KwameAndCo Posted September 28, 2023 Share Posted September 28, 2023 You need to share the site and the code you're using. It's possibly to do with the iframe but without sufficient information we can't really help buddy. Work With Me 🖥️💻📱 Please remember to tag me so that I get a notification and respond to your help requests. If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. You can also thank me or make requests by buying me a coffee ☕. (Caffeine fuels me to take more requests) For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials) For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩 Some links may be affiliate/referral links. Link to comment
DDallavalle Posted September 28, 2023 Author Share Posted September 28, 2023 50 minutes ago, DDallavalle said: Hello! I've embedded my Figma prototype and am unsure how to get the device frame to display in the mobile view on my actual device. It's visible when viewing the mobile view on a desktop only. Also, the height of the mobile frame is clipped on my device. Does anyone have any suggestions? Webpage: https://www.danielleborisoff.com/iframe-test Embed code: <div style="padding-bottom:100%; position:relative; display:block; width: 100%"> <iframe width="100%" height="100%" src="https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Fproto%2FGyvp3zqubzq4tP1yw1nqFD%2FCapstone-Marketing-Site%3Fpage-id%3D57%253A6251%26type%3Ddesign%26node-id%3D57-6259%26viewport%3D793%252C496%252C0.13%26t%3D4refmqMFGP2NTcAR-1%26scaling%3Dscale-down%26hotspot-hints%3D0%26mode%3Ddesign" frameborder="" allowfullscreen style="position:absolute; top:0; left: 0"> </iframe> </div> I've added the embed code, my bad. Thanks for your response! Link to comment
KwameAndCo Posted September 28, 2023 Share Posted September 28, 2023 Hmm.. You're kinda limited with iframes. You could do something along the lines of trying @media (max-width: 768px) { blockid iframe { height: 200%; /*experiment with values over 100%*/ } } Using your blockid. Or even overriding the 100% in the iframe but honestly I'm thinking you're a bit limited . Work With Me 🖥️💻📱 Please remember to tag me so that I get a notification and respond to your help requests. If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. You can also thank me or make requests by buying me a coffee ☕. (Caffeine fuels me to take more requests) For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials) For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩 Some links may be affiliate/referral links. Link to comment
DDallavalle Posted September 29, 2023 Author Share Posted September 29, 2023 (edited) 22 hours ago, KwameAndCo said: Hmm.. You're kinda limited with iframes. You could do something along the lines of trying @media (max-width: 768px) { blockid iframe { height: 200%; /*experiment with values over 100%*/ } } Using your blockid. Or even overriding the 100% in the iframe but honestly I'm thinking you're a bit limited . Anything I add code-wise seems to break the page now...I may need to use a different solution. Thanks for your help! @KwameAndCo Edited September 29, 2023 by DDallavalle updated Link to comment
KwameAndCo Posted September 30, 2023 Share Posted September 30, 2023 14 hours ago, DDallavalle said: Anything I add code-wise seems to break the page now...I may need to use a different solution. Can you explain how it's breaking? I think you're honestly limited by Figma Work With Me 🖥️💻📱 Please remember to tag me so that I get a notification and respond to your help requests. If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly. You can also thank me or make requests by buying me a coffee ☕. (Caffeine fuels me to take more requests) For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials) For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩 Some links may be affiliate/referral links. Link to comment
DDallavalle Posted October 3, 2023 Author Share Posted October 3, 2023 On 9/30/2023 at 4:55 AM, KwameAndCo said: Can you explain how it's breaking? I think you're honestly limited by Figma I get a 'Can't open this page' message on mobile Chrome and Safari. Link to comment
tuanphan Posted October 7, 2023 Share Posted October 7, 2023 Can you keep above code? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment