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.

CSS

Brandon Thomas
Brandon Thomas
6,229 Points

Code Challenge Help!

Hi,

I seem to be stumped on the last part of the Responsive Design, Flexible Images Part One: Vector Graphics challenge. I feel like I am missing a element from my code below and I don't know what it is.

   '''

<object data="img/love-at-first-bite.svg" type="image/svg+xml">
    <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">
      <!--[ end if ]-->
    </a>
  </object>
     '''

3 Answers

Steve N. Peralta R.
Steve N. Peralta R.
31,097 Points

I dont know why because the code above is right. Reload the challenge and try it again.

Wayne Priestley
Wayne Priestley
19,579 Points

The only thing i can suggest is adding

../

before img/

this seems to help sometimes.

Brandon Thomas
Brandon Thomas
6,229 Points

I figured it out thank you folks.