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
Does Flare understand RGBa?
-
- Propeller Head
- Posts: 50
- Joined: Tue Mar 05, 2019 2:43 am
-
- Sr. Propeller Head
- Posts: 308
- Joined: Tue Jun 18, 2013 3:00 am
- Location: Eastern Seaboard, Thailand
- Contact:
Re: Does Flare understand RGBa?
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
Flare 2022, Capture 7
-
- Propeller Head
- Posts: 50
- Joined: Tue Mar 05, 2019 2:43 am
Re: Does Flare understand RGBa?
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
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
-
- Sr. Propeller Head
- Posts: 346
- Joined: Fri Nov 05, 2010 3:30 am
Re: Does Flare understand RGBa?
It may just be a question of syntax. Have you tried referring to background-color and putting commas between the values?
-
- Propeller Head
- Posts: 50
- Joined: Tue Mar 05, 2019 2:43 am
Re: Does Flare understand RGBa?
SOLVED!
The following syntax works:
{
background-color: rgba(255, 245, 238, 0.5);
}
The following syntax works:
{
background-color: rgba(255, 245, 238, 0.5);
}