SamAs Posted March 20, 2021 Share Posted March 20, 2021 Site URL: https://mycarbonzero.org/home Hi, I'm having a couple of issues with an embedded widget... A photo of the widget is attached, and the code I used to embed it is here: <iframe src="https://co2widget.com/embed/" width="100%" height="450" frameborder="0" scrolling="no" title="live CO2 PPMr"></iframe> Firstly, even after editing and playing around with the height parameter, there is still large white padding above the widget, is there any way to get rid of this? Secondly, when I view the page on a tablet or phone, the white padding above is no longer there, but the widget isn't fully visible, as it changes shape. Any ideas on how to approach both of these issues? Thanks Link to comment
Solution tuanphan Posted March 28, 2021 Solution Share Posted March 28, 2021 Hi. Add to Design > Custom CSS /* Fix iframe */ @media screen and (min-width:992px) { div#block-yui_3_17_2_1_1616257664900_13099>div { overflow: hidden; } div#block-yui_3_17_2_1_1616257664900_13099 iframe { margin-top: -100px; }} div#block-yui_3_17_2_1_1616257664900_13099 iframe { height: 860px; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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