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

General Discussion

Aurelian Spodarec
Aurelian Spodarec
10,801 Points

Press and PRINT?

HI,

When you have a website, how can you make a button so it takes the main information?

So, say you have a recepty, and you ahve all the igridients etc..

How do you make it, so you print it, but you don't preint the navigation header images... ?

Is this done with Web technologies and no server side language?

I'm just doing front-end, or learning it.

1 Answer

Steven Parker
Steven Parker
231,261 Points

:point_right: Anything to do with presentation or printing will be front-end.

A server may offer a special "printer friendly" version of the page content, but ultimately anything to do with the presentation will occur in the browser.

One way to omit items from page when printing is to use a CSS media query. For example, if you place this in your CSS:

@media print
{    
    .no-print {
        display: none !important;
    }
}

Then anything you give the class no-print to will show up on the screen, but not in a printed version of the page.

Aurelian Spodarec
Aurelian Spodarec
10,801 Points

Thanks,

Would there be an article about explaining all this stuff?