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 trialMichael Nguyen
3,332 PointsCode Challenge: Build a Responsive Website> Responsive Design> Content Defined Breakpoints
I'm stuck on this one code challenge. I've tried many different codes but i cant seem to get the illustration to disappear.Please help
/* Mobile ----------- */ @media screen and (max-width : 705px) {
.grid_1 { width: 100%; } .grid_2 { width: 100%; } .grid_3 { width: 100%; } .grid_4 { width: 100%; } .grid_5 { width: 100%; } .grid_6 { width: 100%; }
} .love-at-first-bite { display: none; } }
5 Answers
Bryan Farris
1,869 PointsHi Michael,
You actually need to add the class of "love-at-first-bite". Your CSS is targeting a class of "love-at-first-bite". Try this:
<div class="grid_2 omega">
<img src="img/love-at-first-bite.gif" alt="Love at First Bite" class="love-at-first-bite" />
</div>
</div>
Let me know if that works.
Shannon Yeh
8,987 Pointsi think #intro img { display:none; }
Bryan Farris
1,869 PointsDid you add the class "love-at-first-bite" to the image on the HTML view?
Michael Nguyen
3,332 Points'Yes, <div class="grid_2 omega"> <img src="img/love-at-first-bite.gif" alt="Love at First Bite"> </div> </div>
Michael Nguyen
3,332 Points <div class="grid_2 omega">
<img src="img/love-at-first-bite.gif" alt="Love at First Bite">
</div>
</div>