Title: w3c css-validator errors
Last modified: October 3, 2017

---

# w3c css-validator errors

 *  [artandscores](https://wordpress.org/support/users/artandscores/)
 * (@artandscores)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/)
 * Hi. If where for your interest:
 * when using w3c css-validator, this errors shown:
 * .crp_related .crp_title Property not valid : text-shadow Únicamente 0 puede ser
   un length. Debe especificarse una unidad detrás de la cifra : 1000 0.1em 0.1em
   0.2em
    .crp_related .crp_title Property not valid : background Función RGB no
   válida ) .crp_related li:hover .crp_title Property not valid : background Función
   RGB no válida )
 * Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/#post-9568358)
 * Not really sure why it gives that as rgba is a valid function from what I can
   see, or at least I thought so.
 * [https://www.w3schools.com/css/css3_colors.asp](https://www.w3schools.com/css/css3_colors.asp)
 * I can’t find a fix for this.
 *  Thread Starter [artandscores](https://wordpress.org/support/users/artandscores/)
 * (@artandscores)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/#post-9568734)
 * Well, w3c says simple words:
 * 1 .crp_related .crp_title Value Error : text-shadow only 0 can be a length. You
   must put a unit after your number : 1000 0.1em 0.1em 0.2em
    2 .crp_related .crp_title
   Value Error : background Invalid RGB function ) 3 .crp_related li:hover .crp_title
   Value Error : background Invalid RGB function )
 * 1. says that you must **put unit after numbers**. They explain text-shadow format
   here:
    [https://www.w3schools.com/cssref/css3_pr_text-shadow.asp](https://www.w3schools.com/cssref/css3_pr_text-shadow.asp)
 * 2. and 3. says that rgb and rgba are followind, both together, and **it doesn
   ´t like rgb**
 * For example, into 3 you have:
 * .crp_related li:hover .crp_title{background:rgb(0.2, 0.2, 0.2);background:rgba(
   0, 0, 0, 0.8)}
 * if delete **background:rgb(0.2, 0.2, 0.2)**, no errors into W3c.
 * Thanks
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/#post-9571098)
 * Thanks that helps. I thought the error was with rgba. I’ll fix this in the next
   version.
 *  Thread Starter [artandscores](https://wordpress.org/support/users/artandscores/)
 * (@artandscores)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/#post-9985633)
 * The validator.w3.org gives several errors:
 * 1.- Error: CSS: text-shadow: only 0 can be a length. You must put a unit after
   your number.
 * text-shadow:1000 .1em .1em .2em
 * 2.- Error: CSS: background: Invalid RGB function.
 * background:rgb(0.5, 0.5, 0.5);background:rgba(0, 0, 0, 0.5)
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/#post-9986479)
 * Can I check if you were able to fix these on your site by editting the CSS? And
   if so, what was the revised code?
 *  Thread Starter [artandscores](https://wordpress.org/support/users/artandscores/)
 * (@artandscores)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/#post-9995416)
 * Hi there. I don´t know the better solution to fix this, but are very simple as
   i said in previous post:
 * 1. text-shadow:1000 .1em .1em .2em
    It doesn´t like number 1000. So i think this
   property is color, something as #100.
 * 2. background:rgb(0.5, 0.5, 0.5);background:rgba(0, 0, 0, 0.5)
    It doesn´t like
   rgb+rgba both together for background (if delete rgb, it fixed -but i dont know
   what is the right to delete- ).
 * Thanks.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/#post-10012306)
 * I just checked it on the CSS site. I think there might be a solution. I’ll look
   to fix this in the next version.
 *  Thread Starter [artandscores](https://wordpress.org/support/users/artandscores/)
 * (@artandscores)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/#post-10013318)
 * Thank you

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘w3c css-validator errors’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [artandscores](https://wordpress.org/support/users/artandscores/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/w3c-css-validator-errors/#post-10013318)
 * Status: not resolved