Struggling with media query (Technical Doc Project)

Struggling with media query (Technical Doc Project)
0.0 0

#1

Hello all,

I’m finishing up with the “skeleton” of my technical documentation project and have run into a brick wall…

I’ve tried to implement a simple media query, yet nothing that I write works.

I’ve tested recommended code snippets, the example from the first exercise in the fCC, among others.

Any advice would be highly appreciated!

Link to my Codepen:


#2

you have two minor issues

1- you have a missing } brace just before the start of your @media section. Add the missing brace.
2- you need to put some content into your media section For eg. I tried adding

body {
  width: 100%;
}

Once these two were fixed, all the tests passed.
hope this helps


#3

Oh my lordy… It was that missing brace that I couldn’t notice.