Learn CSS Grid by Building a Magazine - Step 77

Tell us what’s happening:

this is my code but it’s not working:

@media only screen and (max-width: 720px) {
.image-wrapper {
grid-template-columns: 1fr;
}
}

Your code so far

<!-- file: index.html -->

/* file: styles.css */
/* User Editable Region */

  grid-column: 1 / -1;
@media only screen and (max-width: 720px) {
.image-wrapper {
grid-template-columns: 1fr;
}
}

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Grid by Building a Magazine - Step 77

Check that floating property and value. It’s outside the selector.
Edit: you have deleted the closing bracket of the previous selector.
The at-media rule is fine.

Ah i see! Thank u so much!

1 Like