CSS 3.0 Valid Color Property

Total Post:104


 1504  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!
  1. Re: CSS 3.0 Valid Color Property

    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);


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.