Forum Moderators: not2easy

Message Too Old, No Replies

Hack management

         

photon

12:48 pm on Sep 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's an article that offers advice on "Strategies for Long-Term CSS Hack Management [informit.com]".

Using CSS in a contemporary browser? You'll probably need to use a variety of CSS hacks to accomplish the best possible cross-browser compatibility. Molly Holzschlag helps you determine if you need hacks, how to manage them effectively if so, and which hacks you can employ to solve a range of common compatibility problems.

encyclo

1:15 pm on Sep 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In terms of hack management, I'm very surprised at the recommendation of the "Mid Pass" filter for serving different styles to IE5. It's so much better to use a conditional comment in that situation rather than the horribly convoluted line-noise that the MP filter looks like.

Unfortunately, that diminishes what is a useful primer on how to keep your CSS clean whilst coping with older browsers.

SuzyUK

9:59 am on Sep 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was reading a lot of Molly's stuff lately and I too was surprised at the recommendation of these filters, they just look plain scary! :o

It's like the Tantek 'voice-family' hack though it's a cut pasteable solution without knowing why you have to use it and it has Tantek's name attached to it so it has the "notoriety" and has already appeared in some books. I think it'll land up like now with the voice-family hack, it was required but again there are not only simpler Box Model hacks, but an cleaner way would be to use the conditionals. No matter what happens in the future these conditionals will only target the IE version you specify and in themselves can be removed (or renamed if newer versions have more joys in store!).

But then if you use an include for controlling the <head> element of documents, I do, you still only have to change a line once for site-wide maintenance, and I suppose if you prefer it all in the CSS file then the hacks would be fine, just know why you're using them!

Perhaps we should call it IE management ;)

Suzy