CSS 3.0 VALID COLOR PROPERTY

marcel ethan

Total Post:105

Points:735
Posted by  marcel ethan
 1035  View(s)
Ratings:
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. AVADHESH PATEL

    Post:604

    Points:4228
    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);

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!