Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

svg logo IE7 issue !

Hello , in the code within responsive web design, there is a fallback code for old browsers like ie7 because it does not support <obj> so we used <img> for the logo but it`s not work on my IE7 browser ? any help ?

5 Answers

Well you could add code to your site that asks your visitor to get a different browser...

James Barnett
James Barnett
39,199 Points

@Omar - It's hard to give specific advice without seeing your site.

In general you should either use:

  • raphael - a JavaScript polyfill that supports IE6+
  • modernizr - detects if a browser supports svg otherwise fallback to a png.

@Paul - Thanks for your help, but its not an ideal solution :)

@James : I am asking about why the fallback doesn`t work, when Allice wrote the code she wrote a condition for IE to fall back,

also Thank you for sharing such cool libraries, but I guess you know now what am asking about :)

James Barnett
James Barnett
39,199 Points

@Omar - Instead of using a conditionally stylesheet to target IE, I'd suggest you use modernizr it's a more robust solution.

@James, Thank you so much, you always here to help :D I am going to use it.