Does Flare understand RGBa?

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
WriterAndrew
Propeller Head
Posts: 50
Joined: Tue Mar 05, 2019 2:43 am

Does Flare understand RGBa?

Post by WriterAndrew »

Hi,

I'm trying to use RGBa to give me a "semi-transparent" background that does not also impact the child elements (ie. I want a faded background, WITHOUT fading the text on top of it)

I can use RGB to specify solid colors in my stylesheet:
{background: rgb(255 250 240);}
This works as I'd expect.

However, if I try to add the alpha channel:
{background: rgba(255 250 240 0.2);}
then it doesn't apply any color - it doesn't work! (I've tried changing the alpha from 0.1 to 1.0 - none work!

Am I doing something wrong, or is it that Flare does not understand RGBa yet?

Thanks
atomdocs
Sr. Propeller Head
Posts: 308
Joined: Tue Jun 18, 2013 3:00 am
Location: Eastern Seaboard, Thailand
Contact:

Re: Does Flare understand RGBa?

Post by atomdocs »

How does it look in your output? There are some properties that Flare can't render in the editor, but are fine in output. You can still use them in your projects.
Tom
Flare 2022, Capture 7
Image
WriterAndrew
Propeller Head
Posts: 50
Joined: Tue Mar 05, 2019 2:43 am

Re: Does Flare understand RGBa?

Post by WriterAndrew »

Hi, atomdocs,
I've checked in the output, and as far are I can tell, Flare seems to ignore RGBa... (well, at least, I've not found a way of making it understand them yet!)
Thanks
ajturnersurrey
Sr. Propeller Head
Posts: 346
Joined: Fri Nov 05, 2010 3:30 am

Re: Does Flare understand RGBa?

Post by ajturnersurrey »

It may just be a question of syntax. Have you tried referring to background-color and putting commas between the values?
WriterAndrew
Propeller Head
Posts: 50
Joined: Tue Mar 05, 2019 2:43 am

Re: Does Flare understand RGBa?

Post by WriterAndrew »

SOLVED!
The following syntax works:

{
background-color: rgba(255, 245, 238, 0.5);
}
Post Reply