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 Adaptive Design Implementing Media Queries

Cameron Pauli
Cameron Pauli
2,879 Points

Hiding Images within Div

For some reason, I cannot figure out how to hide the images within the .cupcake div when the display falls below 480px.

Can you show me what you have so far and we can see what you are missing!

2 Answers

Andrew Shook
Andrew Shook
31,709 Points
@media (max-width:480px) {
    .cupcake img{
        display:none;
    }
}

I was going to attempt to guide the OP to the answer rather than just give it to them, so they would understand it more :)

Cameron Pauli
Cameron Pauli
2,879 Points

I figured it out guys.... thanks!