Title: Valid CSS
Last modified: August 18, 2016

---

# Valid CSS

 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/valid-css/)
 * One thing that attracted me to WP was XHTML standards. The developers and community
   have worked hard to keep this going. I’d like to see the default template come
   with valid CSS and a link to a CSS validator as well.
    I don’t profess to be 
   a CSS expert, nor would I be willing to be money that my own site is valid CSS,
   either. It just seems to me that if the code is going to be valid, then we should
   go the extra bit to make the CSS valid, too. This can be an enormous challenge,
   of course, given the broad spectrum of browsers in use out there. It’s not an
   impossible thing, either. There are some important basic rules in CSS that are
   often not followed, and we all should strive to make our sites as close to valid
   in both areas as possible. Comments? Suggestions? Go soak your head, Nuclear 
   Moose? 🙂 I’d be willing to take all of the default CSS in the WP install and
   ensure that it is validated. Craig.

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

 *  [arthuc01](https://wordpress.org/support/users/arthuc01/)
 * (@arthuc01)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/valid-css/#post-27959)
 * I agree the default css files with WP should validate – but I don’t see the point
   in linking to a validator from the default installation. I didn’t realise the
   default CSS didn’t validate?
    Don’t forget though that just because the CSS validates
   doesn’t mean that it renders the same in all browsers
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/valid-css/#post-27960)
 * What about it [doesn’t validate](http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Ffresh.wordpress.org%2Fwp-layout.css&warning=1&profile=css2&usermedium=all)?
 *  [Sushubh](https://wordpress.org/support/users/sushubh/)
 * (@sushubh)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/valid-css/#post-27962)
 * validating CSS seems to be an easy task. It does not make sure that the page 
   will look similar in all the browsers. 🙂
 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/valid-css/#post-27971)
 * Yeah, making it validate is pretty darn easy. Actually, making it look similar
   in all the browsers currently BREAKS the CSS validation in some circumstances(
   as one trick is using a tag like voice stuff to make certain browsers early-exit
   processing a given style block… which is a no-no if you aren’t in a voice-style-
   sheet but rather a screen or printer one…).
    =d
 *  Thread Starter [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [22 years, 5 months ago](https://wordpress.org/support/topic/valid-css/#post-27972)
 * LOL! Okay, I really stuck my foot in my mouth on this one, didn’t I? The wp-layout.
   css does validate perfectly, as Matt shows with his link.
    I think a point I 
   was trying to make was not the point I posted or something like that. Maybe an
   Admin should just remove the thread. Sigh. I should have just not bothered today…
   it’s been “one of those days!” 🙂 Craig.
 *  Anonymous
 * [22 years, 3 months ago](https://wordpress.org/support/topic/valid-css/#post-28885)
 * Just an update for late readers. The voice box hack referred to here does now
   validate. The validator was broke but is now fixed. Hack away. 🙂
 *  [bruce21](https://wordpress.org/support/users/bruce21/)
 * (@bruce21)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/valid-css/#post-28974)
 * It isn’t an end all, but it is important that your style validates.
    On all three
   styles on my latest (last nite) WP, xhtml is valid.
 * Now, if I upload style.css to the validator, (aside from a generic font–family
   fix), it validates. I did some fixes on another I use, and it validates on an
   upload check. But a site check on my latest install gives me:
 * “Please, validate your XML document first!
    Line 98 Column 2 The content of elements
   must consist of well-formed character data or markup.”
 * I get this on all 3 themes exactly the same. If I could find “Line98 col2” I 
   could fix it!
    So it must be in the code in the page, and something I did.
 * I just checked another install I did on another site a few nites ago and it validates
   both as xhtml and css! hmmm what did I do????
    Delete the site and reinstall 
   I guess, have no idea where the above came from Guess what!!!!! I put some php
   code in an article, enclosed in the code brackets also as it should be, and that
   is what caused the above! Unreal…lol. I was going to reinstall…whew! Left this
   up in case anyone else gets this. I use a different stylesheet and template xhtml1.0Strict.
   Wordpress 1.5 is Valid XHTML 1.0 Strict! And Valid CSS, no warnings or errors
   found. Same on my other install with default style. Add a link to CSS:
    - [">
       <?php _e('Valid CSS'); ?>
    - I think the program is TOTALLY AWESOME.
 *  [bruce21](https://wordpress.org/support/users/bruce21/)
 * (@bruce21)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/valid-css/#post-28975)
 * I screwed it up

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

The topic ‘Valid CSS’ is closed to new replies.

 * 8 replies
 * 7 participants
 * Last reply from: [bruce21](https://wordpress.org/support/users/bruce21/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/valid-css/#post-28975)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
