Home > DeveloperSection > Forums > CSS 3.0 Valid Color Property
marcel ethan
marcel ethan

Total Post:105

Posted on    April-02-2013 2:09 AM


 1 Reply(s)
 982  View(s)
Rate this:
Hi All!

Visual Studio 2012 (Ultimate) states (with a red squiggly) that

rgba(255, 255, 255, 0.4) is not a valid color property value

But the W3C says it is. Is this a bug, or am I missing something?

Thanks in advance!


Total Post:604

Posted on    April-02-2013 7:37 AM

Hi Marcel!

Try this way

It is a valid color property as per CSS3 standards;

rgba(255, 255, 255, 0.4)
The fourth parameter 0.4 refers to the opacity which is a CSS3 feature, and a in rgba means alpha

You could also try this in Visual Studio to see that it doesn't flag an error;

rgb(255, 255, 255);

Don't want to miss updates? Please click the below button!

Follow MindStick