18a

Future-proof your CSS with Conditional Comments

5th November 2007 09:09 by tom
Anyone who has ever made a website, then tried to make it look the same for everyone will have come up against the nightmare that is cross-browser compatibility. Things are no doubt easier than they used to be. Back in the days of ie4/5 and Netscape you practically had to have different versions of your website, or atleast different javascript files. Nowadays the main issues tend to be around CSS and often relate to IE's inability to abide by the rules. Much of this has been fixed in IE7, infact off the top of my head I can't think of any issues I've personally had with IE7, but unfortunately there are still bazillions of IE6 infected computers which the poor web designer is obliged to support. In the past I've used many a hack to get the job done, but a 'nicer' way of doing things is to use conditional comments. Why not take a look for yourself on Bruce's website. http://www.brucelawson.co.uk/index.php/2005/future-proof-your-css-with-conditional-comments/