Category Archives: css

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

Tagged , , , | Leave a comment