create a white rgba / CSS3

Css

Css Problem Overview


I'm customizing a plugin that uses css3's rgba throughout, I'm trying to figure out how to toggle it for it to render white with the opacity. At default it's near the shade of #333, and my attempts area leading it to blue or brown. Whats the white customization numbers? below is what I'm using?

background:rgba(255,255,255, 0.3);

Css Solutions


Solution 1 - Css

The code you have is a white with low opacity.

If something white with a low opacity is above something black, you end up with a lighter shade of gray. Above red? Lighter red, etc. That is how opacity works.

Here is a simple demo.

If you want it to look 'more white', make it less opaque:

background:rgba(255,255,255, 0.9);

Demo

Solution 2 - Css

For completely transparent color, use:

rbga(255,255,255,0)

A little more visible:

rbga(255,255,255,.3)

Solution 3 - Css

I believe

rgba( 0, 0, 0, 0.8 )

is equivalent in shade with #333.

Live demo: http://jsfiddle.net/8MVC5/1/

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionFred RandallView Question on Stackoverflow
Solution 1 - CssbookcaseyView Answer on Stackoverflow
Solution 2 - CssStefanni BeckerView Answer on Stackoverflow
Solution 3 - CssŠime VidasView Answer on Stackoverflow