Comments

  1. Steve James says:

    Ah, but your CSS can and will validate if you use a Javascript technique I came up with!

    Go to http://www.utahtechspotlight.com for a reference on how I get my CSS to validate with non-compliant code. I basically include an external JavaScript file, in this case called “javascript_mozilla_hacks.js”. In the JavaScript I basically determine if the user has a Mozilla browser, if so then I include a special stylesheet, via JavaScript, with invalid CSS – this example just gets rid of active marques on A tags. I execute all the hacky, invalid code I want in this stylesheet.

    Since the code is ran through JavaScript, validaters and such do not check these hacky “on-demand” stylesheets, and your page will validate!

    Is this an absolute solution? Not, really. However, why sacrifice a good design for validation purposes. Fool the validators until CSS3 comes around!

  2. George says:

    Would this be the “Steve James IE Validation Hack?”

    Don’t you think you can completely avoid IE Hacks (except for PNG’s) with any layout?

    Ever since going through the Nicholas Galanin experience, I think it’s possible.

    And what about the outline: none tag? I hate those outlines.

Leave a Reply