Saving a HTTP request by combining screen and print styles

Instead of defining two stylesheet links in your head tag, you can define one and for screen & print styles and divide the different styles in the one stylesheet.

@media screen {
	body { font-size:14px; }
}

@media print {
	body { font-size:10pt; }
	h1, h2, h3 { page-break-after:avoid; }
}

Read the full article at the blog of Geert De Deckere

About joggink

I'm a freelance frontend developer and a proud member of the dutch fronteers.

15. December 2009 by joggink
Categories: css, frontend development | Tags: , , , | Leave a comment

Leave a Reply

Required fields are marked *

*