Title: Validating CSS stylesheet
Last modified: August 18, 2016

---

# Validating CSS stylesheet

 *  Resolved [broomy](https://wordpress.org/support/users/broomy/)
 * (@broomy)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/validating-css-stylesheet/)
 * After validating xhtml I have been trying to validate my stylesheet (wahow. org),
   but i’m stuck on a few errors:
 * I get a few parse errors from the post-ratings plugin. I copied the stylesheet
   for the plugin into my main stylesheet so that I didn’t have stylesheets all 
   over the place. I’m not sure what i’d need to do to remove these errors.
 * I get redefinition warnings because i’ve tried to keep my site compliant to all
   browsers. Does this validation part matter because i’m not sure how I could validate
   this without coming across errors across browsers if I remove them.
 * Lastly, i have no background-color for a few styles because they apply to different
   sections of my site with different backgrounds. I thought i’d be able to use 
   background-color: transparent; but this doesn’t seem to validate. How can I do
   this?
 * If anyone can help with any of this i’d appreciate it.
 * Thanks.

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

 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/validating-css-stylesheet/#post-441573)
 * Sounds like those are all warnings, not “errors”. I look at those as much more
   discretionary, at least I don’t attach nearly the significance of a validation‘
   error’.
 * As far as cross-browser stuff, I gave up some time ago trying to make everything
   work in one stylesheet and now use conditional commenting (for IE<6).
 *  Thread Starter [broomy](https://wordpress.org/support/users/broomy/)
 * (@broomy)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/validating-css-stylesheet/#post-441582)
 * Seems you’re my personal helper Yosemite :-). Thanks again, i’ll try and get 
   as many warnings sorted if possible, but i’ll nevertheless just have to accept
   the majority of it rather than risk messing up my layout.
 * Thanks.
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/validating-css-stylesheet/#post-441586)
 * I agree with Sam, there – but I’d also like to toss in a comment:
 * The W3C did something to the CSS validator that makes the absense of “background-
   color: when you have a “color” stated (or vice versa) in *any* part of your stylesheet
   a warning. Such a thing is fairly redundant and not necessary – most designers
   I know (including myself) *will* ignore the color/background-color warnings.
 * So if I were you, I wouldn’t bang my head on that one. Any other warnings, however,
   are to your discretion 😉
 *  Thread Starter [broomy](https://wordpress.org/support/users/broomy/)
 * (@broomy)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/validating-css-stylesheet/#post-441607)
 * Thanks doodlebee, it was beginning to get a bit frustrating because i’ve been
   looking up using background-color: transparent; and many of the sites were explaining
   that it is ok, yet I couldn’t successfully validate.
 * Thanks for clearing that up.

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

The topic ‘Validating CSS stylesheet’ is closed to new replies.

## Tags

 * [Stylesheet](https://wordpress.org/support/topic-tag/stylesheet/)
 * [validate](https://wordpress.org/support/topic-tag/validate/)

 * 4 replies
 * 3 participants
 * Last reply from: [broomy](https://wordpress.org/support/users/broomy/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/validating-css-stylesheet/#post-441607)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
