Future-proof your CSS with Conditional Comments

tom Tom, 5th November 2007

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/

More from our blog

18a win Netty 2024 award for Activibees.com

18a win Netty 2024 award for Activibees.com

29.02.24

We are delighted to announce that 18a has been recognised for its outstanding work in the "Web Design Agency of the Year - UK" category at… Read →

Generating an Effective Content Security Policy with your Laravel React App

Generating an Effective Content Security Policy with your Laravel React App

27.02.24

I recently had an interesting problem to solve. I'd built a brand new author website on a shiny installation of Laravel 10, utilising its out-of-the-box… Read →

If your WordPress website looks broken, it could be because of this.

If your WordPress website looks broken, it could be because of this.

15.02.24

WordPress is the incredibly popular blogging-come-full-website platform that powers over 835 million websites* in 2024. It's functionality is extended by plugins, and one such very… Read →