Help with @media query

I am on step 20 of the Learn CSS Flexbox project, very stuck. The “hint” seems to be exactly what I have in, but it keeps being flagged as wrong.
Prompt is:

Step 20

Create a media query for screens smaller than 800px in width. In that media query, create a #gallery img rule and set the width property to 50%. This will convert your gallery to a two-column layout.

My code:
@media (max-width: 800px)

The hint:


Your new @media query should have a max-width of 800px like this: @media (max-width: 800px).

where’s your #gallery img rule?

@media (max-width: 800px) {
#gallery img {
width: 50%;

1 Like

I can’t do much without a link to the challenge.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.