simkrys Posted March 23, 2021 Share Posted March 23, 2021 Site URL: https://www.chrisjourdian.com/music password: Music123 I'm trying to make the iframe responsive on mobile. I've tried putting the iframe inside and div and make it resize according to the div. This is the code I used but it isn't doing anything: .songwhip { position: relative; height: 0; padding-bottom: 25%; overflow: hidden; } .songwhip iframe { position: absolute; width: 100% !important; height: 100%; top: 0; left: 0; } Thanks in advance~! Beyondspace 1 Link to comment
Beyondspace Posted March 24, 2021 Share Posted March 24, 2021 6 hours ago, simkrys said: Site URL: https://www.chrisjourdian.com/music password: Music123 I'm trying to make the iframe responsive on mobile. I've tried putting the iframe inside and div and make it resize according to the div. This is the code I used but it isn't doing anything: .songwhip { position: relative; height: 0; padding-bottom: 25%; overflow: hidden; } .songwhip iframe { position: absolute; width: 100% !important; height: 100%; top: 0; left: 0; } Thanks in advance~! I noticed you used incorrect double quote for the class name Change it from <div class=”songwhip″> to <div class="songwhip"> simkrys 1 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword HighlighterIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
simkrys Posted March 24, 2021 Author Share Posted March 24, 2021 ohhhhhh my god 🤦🏽♀️ thanks so much for catching that!! Beyondspace 1 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