brynatmercy Posted November 15, 2021 Share Posted November 15, 2021 (edited) Site URL: https://www.mercyuk.org/christmas I wonder if someone could help me?! We've added a CAF payment widget to our website. It displays fine on a desktop, but in mobile mode, the widget extends outside of the webpage (see picture). I've tested it on several mobiles, and it's always the same. Here is the widget code I'm using... Is there any way of overriding the DIV style to make it fit within the page?? <div id="CAFDonateWidgetContainer"></div> <script type="text/javascript"> var caf_BeneficiaryCampaignId=18453; document.write(unescape('%3Cscript id="CAFDonateWidgetLoader_script" src="https://cafdonate.cafonline.org/js/CAF.DonateWidgetLoader_script.js" type="text/javascript"%3E%3C/script%3E')); </script> Edited November 15, 2021 by brynatmercy SquareRefresh 1 Link to comment
Solution SquareRefresh Posted November 15, 2021 Solution Share Posted November 15, 2021 (edited) Hey @brynatmercy try to add next code in Custom CSS: @media screen and (max-width: 480px) { #CAFDonateWidgetContainer iframe { width: 100% !important; } } Edited November 15, 2021 by SquareRefresh tuanphan 1 SquareRefresh, premium plugins & templates that have an elevated feel. Plugins: Have your site stand out. Templates: Our templates are designed with versatility in mind.Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins. Link to comment
brynatmercy Posted November 15, 2021 Author Share Posted November 15, 2021 @SquareRefresh THAT WORKED!! I can't thank you enough. I've been trying to crack that issue for hours! SquareRefresh and tuanphan 2 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