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

Nazaam Kutisha
Nazaam Kutisha
7,667 Points

I need help with this one - Swap out the appropriate selector in the media query in the CSS so that the Love at First Bite SVG object still disappears when the viewport is less than 705px.

http://teamtreehouse.com/library/websites/build-a-responsive-website/responsive-design/flexible-images-part-one-vector-graphics-2

My response was the following:

#intro, object svg {
    display: none;

What would the selector be here?

   @media screen and (max-width : 705px) {
  .grid_1,
  .grid_2,
  .grid_3,
  .grid_4,
  .grid_5,
  .grid_6,
  .grid_7,
  .grid_8,
  .grid_9,
  .grid_10,
  .grid_11,
  .grid_12 {
   width:100%;
  }
   #intro, object svg {
    display: none;
      }
    h1 {
    font-size: 2.75em;
      }
}

1 Answer

Kevin Korte
Kevin Korte
28,109 Points

Try leaving the

#intro img

in the css, and just add the selector "object" to it. That's what I just did and it passed me.