Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Layout CSS Media Queries What are Media Queries?

I added the media query as shown in the video, but that had no effect on the print preview in my browser.

I'm using Firefox on a PC, and unfortunately the print preview did not change after I added the media query to the bottom of my Workspaces stylesheet, exactly as shown in the video. Can someone please help?

1 Answer

Daniel Ruus
Daniel Ruus
6,607 Points

I had the same issue, but in Chrome. I changed from min-height to only height and then it worked. Like this:

@media print { section { height: auto; /* color: red; */ } }

Also tried to add a textcolor just to make sure that the media query was working, to narrow down the troubleshooting.