Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Responsive Layouts Media Queries Media Query Review

nico dev
nico dev
20,360 Points

when to use (practical, real uses) '@media print' ?

Hi community,

This may sound like a little bit of a follow up to another question made by someone else earlier here, but with further curiosity.

Is the @media print really used? In which cases would you design a site or use CSS media queries to printed media?

May be a little bit of a clumsy question but I can't see a scenario nor did I find one in the explanation of MDN with this respect.

Thanks in advance!

3 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Nico;

Great question. I have used @media print for situations in which I have a page that is designed specifically to be printed out. You might come across this on sites that have articles and have a printer icon associated with the article. On occasion clicking on the printer will open a new tab/window/modal that is formatted specifically for print media.

Hope that helps and happy coding.

Ken

nico dev
nico dev
20,360 Points

Thank you Ken Alger!

That makes quite a lot of sense to me now. I do remember now some cases in which I've seen that type of pages.

Thank you for taking the time to answer me.

thank you