don't enter anything here

Use valid CSS

The W3C validator finds 2 CSS syntax errors. All CSS should validate (with the exception of the -moz and -webkit properties), especially on a programming site.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    siracusasiracusa shared this idea  ·   ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • siracusasiracusa commented  · 

        Allowing syntax errors in your code because "it looks okay in the 6 browsers I tried" is just setting yourself up for recurring problems as new browser versions are released. As the linked document says, "non-valid pages are (by definition) relying on error-correction by a browser." Error correction varies wildly as browsers advance versions, whereas standards support gets better over time.

      • Grant10kGrant10k commented  · 

        Validation works 'in theory' but browsers will still render 100% valid pages differently.
        In reality, people only use one of maybe 6 different browsers, if they work in those, then you don't have a problem.
        Validation doesn't really net you much gain aside from bragging rights and geek points.

      • Grant10kGrant10k commented  · 

        If the page works, does it really matter if the CSS is valid?

      General

      Feedback and Knowledge Base