Rule Wrapping exercise within RWD course

Tell us what’s happening:

I am trying to wrap a media rule around an already existing rule.

Your code so far

* {
  @media (prefers-reduced-motion: no-preference){
    scroll-behavior: smooth;
  }
}

I have wrapped the item in question: scroll-behavior: smooth, within @media (prefers-reduced-motion: no-preference). Yet I am still getting the error " You should have one`@media (prefers-reduced-motion: no-preference) rule." Any tips would be greatly appreciated

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Step 66

Link to the challenge:

Hi @c0nsy

The instructions have an example of the media query format:

@media (feature: value) {
  selector {
    styles
  }
}

Notice how the entire css selector is nested inside the @media query.

1 Like

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