Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Build a Responsive Website Responsive Design Vector Graphics (SVG)

10,980 Points

svg fallback not working in IE

I'm using this technique for a project, and it doesn't seem to work in IE 8 and below. I have the same exact code as the video but I can't get it to work. HELP!

IE 8 just gives me an error page with this link: http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd

2 Answers

Joe Hirst
Joe Hirst
Courses Plus Student 6,489 Points

Hi Louie,

Have you tried Alexey Ten’s method?

It would look something like:

<svg width="150" height="150">
<image xlink:href="mysvg.svg" src="mysvg.png" width="150" height="150" />

Maybe this link will help?

10,980 Points

I tried everything, even that one. Does it make a difference if I'm checking with IE10 but changing it to preview IE8 via inspect element?