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

CSS

Sergi Beltran
Sergi Beltran
18,493 Points

Swap out the appropriate selector in the media query in the CSS so that the Love at First Bite SVG object...

Hi again, I'm on statge 4 of Responsive Design of the project Build a Responsive Website.

There two objectives about vectors graphics. The first challenge is done, but the second i can't, why? I think it's very simple, I've wrote the next code:

@media all (max-width: 704px){
 object[data="img/love-at-first-bite.svg"] { display: none; } 
}

Thank you!

1 Answer

Jacob Miller
Jacob Miller
12,466 Points

All you need to do is change the img selector to select the object in the media query:

/*FROM THIS*/
#intro img {
    display: none;
}
/*TO THIS*/
#intro object {
    display: none;
}
Sergi Beltran
Sergi Beltran
18,493 Points

Thank you very much, you're right!