I’m confused why this code isn’t working. The prompt is as follows:
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.
I tried it and it worked like this, thank you. If you wouldn’t mine explaining? Why does this work rather than the including the media type? Would it just be due to fCC requiring it to be formatted this way? Or is there some error with the initial way I coded it which included the media type?
If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.