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!
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
George Huff
peddler of ideas and all things that are good
I am a digital geek; equal parts designer, builder, and ideator. I am the co-founder of a interface design shop in Portland, Oregon called We the Media. We do amazing stuff running the gamut from systems design to application development to interface design. If you would like to work with us, drop me a line.
At this blog you will find stories about business, life, web design, & culture. You will also find a stream of what I find interesting on the web. Enjoy.
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!
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.