Pages

Saturday 30 January 2010

Using CSS Hacks

The best advice I can give is DON'T. It is possible to create a front end that looks the same in IE6+, FF2+ and Chrome without resorting to CSS hacks. Rewrite your CSS if you have to.


There is one 'hack' that I use and that's Conditional Comments. It's a safe hack and allows you to include style sheets to specifcally target the older IE browsers. The older browsers are not going to stop supporting this and any other browser will render it is comment.

No comments:

Post a Comment