0

I have this in my CSS file:

#text p {text-shadow: 0px 1px 0pt rgba(0, 0, 0, 0.50) }

But when I check it against CSS3 I get this error:

Value Error : text-shadow Too many values or values are not recognized : 0 1px 0 rgba(0,0,0,0.5 )

How to fix it please without altering the effect?

Thanks in advance.

1

3 Answers 3

2

The problem seems to be the W3C validator not recognizing rgba (if you just use rgb(0, 0, 0) it validates properly). I wouldn't worry.

On a side note, why did you use "pt" on the third parameter? You could just leave it as 0:

#text p { text-shadow: 0 1px 0 rgba(0, 0, 0, 0.50) }
Sign up to request clarification or add additional context in comments.

1 Comment

I wish people would stop trying to validate HTML5 and CSS3 code for the next year or so. It makes no sense to validate things that haven't been standardized yet (why do the W3C even have a validator for it in the first place?). I'm also getting tired of answering questions with "this is a bug and you can't/shouldn't change it".
0

yes, try

#text p {text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.5) }

1 Comment

Same output. :( Thanks for the try
0

According to quirksmode, text-shadow takes 4 parameters. Maybe try to move rgba to the first place? also please note that in 0px 1px there are px but for the third one you use pt.

Anyway i have created jsfiddle demo and it seems that it works, not sure why it does not validate...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.