Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice CSS Media Queries!
You have completed Practice CSS Media Queries!
Preview
Welcome back. How did you do? Let’s go over how I solved this challenge.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Our first task was to prevent the main and
0:00
footer elements from growing
too wide on a large screen.
0:00
You could involve a media query here,
but as the comments suggested,
0:04
it's not totally necessary.
0:08
I've used a comma to select both
the main and footer element.
0:13
I'll set a max-width of 1024 pixels,
0:17
though if you chose a different number,
that's perfectly fine.
0:20
And we'll set the margin to 0 auto,
that's no extra margin on the top or
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up