Jump to content

Adding opacity to iframe

Recommended Posts

Hi everyone, an organization I'm helping out requested for their donation box to be made slightly transparent. Here's the code for the iframe, from Donorbox: 

<script src="https://donorbox.org/widget.js" paypalExpress="false"></script><iframe allowpaymentrequest="" frameborder="0" height="700px" name="donorbox" scrolling="no" seamless="seamless" src="https://donorbox.org/embed/ihraf-support" style="max-width: 500px; min-width: 250px; max-height:none!important" width="100%"></iframe>

I tried to set up a div element within the code block and go from there, but I can't get it to work. Any ideas? Thanks!

Link to comment
  • 3 weeks later...
On 2/23/2021 at 1:53 AM, ktchernes said:

Yes, sorry about that! Here is the link for the homepage: https://www.ihraf.org

Add to Design > Custom CSS

body.homepage iframe {
    opacity: 0.5;
}

 

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
On 3/2/2021 at 8:34 PM, ktchernes said:

What an easy fix! Thank you so much.

I see on mobile, image is not fullsize. Do you want to fix this?

image.thumb.png.5d78870b1dffb3fdb9efb12a61bbda36.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.