Take the 2-minute tour ×

So I've migrated my old php site to my lovely new rails site, changed all the tags to rails appropriate tags


<img src="images/image.png" width="200px" height="150px'>


<%= image_tag 'image.png', :size='200x150' %>

In Chrome, Safari, Firefox, IE8 everything looks b-e-a-utiful. Problem is, Microsoft doesn't build nice browsers, and worse they are the default on all windows machines. And to top it off not everyone knows or has taken the time to upgrade from these old guys.

My problem is that IE6 doesn't suport png transparency and IE7 doesn't format rails code property (or I'm seriously missing something, its not my css because the simple < br /> doesn't show right, and I've looked elsewhere) My answer to reason would be to force IE6 & IE7 users to an incompatible browser page, but I'm not sure how to go about doing that. I'd like it to do that no matter what page they show up on, home or otherwise, so I'm guessing it would be a helper or based in routes.

Any Clues?

share|improve this question

2 Answers 2

I don't think it's a good idea of turn away users, but FYI you might be able to use Rack::NoIE.

share|improve this answer
up vote 0 down vote accepted

Turns out, the best method is to go through the code line by line and figure out the conflicts. Its now IE7 friendly, its to bad IE6 doesn't support png transparency.

share|improve this answer
I'd just leave the IE6 users to suffer a slightly broken site. There's not many of them now, and it might even persuade them to upgrade. But there are hacks available that will fix the PNG issues in IE6 if you really want to help them. –  Spudley Feb 3 '11 at 9:14

Your Answer


