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

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

Sean Curran
Sean Curran
694 Points

SVG Image Linking Not Working?

I've replaced the standard gif line with

<object data=”img/love-at-first-bite.svg” type=”image/svg+xml” class=”chart”>
    <a href=”img/love-at-first-bite.svg”>
                <!--[if lte IE 8]-->
                <img src="img/love-at-first-bite.gif" alt="Love At First Bite">
                <!--[endif]-->
        </a>
</object>

It won't go through? I've also replaced the img entry in the css with img, object {}

Why won't it work?

2 Answers

Steve Leichman
Steve Leichman
7,008 Points

Check your img src file extension.

Sean Curran
Sean Curran
694 Points

Isn't it meant to be gif as IE8 and lower don't support scaleable SVGs?