How to Set Transparency Percentage for Image

This forum is for all Flare issues related to styles, stylesheets and XML.

How to Set Transparency Percentage for Image

Postby flareuser1 on Tue Oct 08, 2019 5:45 am

I have an image on my homepage that I'd like to make somewhat transparent so that the text over the image is easier to read. I see where I can set the image to transparent in the stylesheet by changing Background from default to transparent. But, when I do that, the image is completely gone. I don't see where I can set the transparency percentage so that I can still see the image. Does anyone know if there is a setting for this?

I ended up opening my stylesheet in the text editor and adding opacity: .4; to the Background. But, there must be a way to do this for images without having to create a custom style. I just don't know where to find it.

Any help would be much appreciated. Thanks!
flareuser1
Propeller Head
 
Posts: 14
Joined: Mon Jul 09, 2012 2:42 pm

Re: How to Set Transparency Percentage for Image

Postby Dave Lee on Tue Oct 08, 2019 11:57 pm

Select the image, go to the Formatting pane, and add the opacity attribute.

This will add local formatting; e.g.
Code: Select all
<img src="Resources/Images/image.png" style="opacity: 0.4;" />
Dave Lee
Master Propellus Maximus
 
Posts: 5790
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: How to Set Transparency Percentage for Image

Postby flareuser1 on Thu Oct 10, 2019 5:13 am

Thank you, Dave. I set the opacity as a custom style, and it did make the image transparent, but it also made the text over the image transparent. Now, I need to figure out how to separate the background image from the text I place over it so that only the background image has transparency.
flareuser1
Propeller Head
 
Posts: 14
Joined: Mon Jul 09, 2012 2:42 pm

Re: How to Set Transparency Percentage for Image

Postby Psider on Mon Oct 14, 2019 6:01 pm

You can't set the opacity on a background image, but there's a general CSS trick you could try. Not sure how you'd go about it in Flare, but hopefully it helps.

https://css-tricks.com/snippets/css/tra ... nd-images/
Psider
Propellus Maximus
 
Posts: 626
Joined: Wed Jul 06, 2011 1:32 am

Re: How to Set Transparency Percentage for Image

Postby kmorrison on Fri Oct 18, 2019 1:08 pm

I solved this one by editing the image file itself (a .png) to make it partly transparent.
kmorrison
Propeller Head
 
Posts: 93
Joined: Mon Nov 11, 2013 3:04 pm
Location: Ottawa, Canada


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 3 guests