<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/css/tags/print</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Feb 2012 10:03:00 GMT</pubDate>
<item>
<title>(CSS) Show only non-printable area on web page but  print only the printable areas - duzenz</title>
<link>http://snipplr.com/view/63077/show-only-nonprintable-area-on-web-page-but--print-only-the-printable-areas/</link>
<description><![CDATA[ <p>Show only non-printable area on web page but  print only the printable areas</p> ]]></description>
<pubDate>Sun, 05 Feb 2012 06:10:57 GMT</pubDate>
<guid>http://snipplr.com/view/63077/show-only-nonprintable-area-on-web-page-but--print-only-the-printable-areas/</guid>
</item>
<item>
<title>(CSS) Define a printable area for a web page - duzenz</title>
<link>http://snipplr.com/view/63076/define-a-printable-area-for-a-web-page/</link>
<description><![CDATA[ <p>defining a printable area from a html web page. Making only one place printable</p> ]]></description>
<pubDate>Sun, 05 Feb 2012 06:07:35 GMT</pubDate>
<guid>http://snipplr.com/view/63076/define-a-printable-area-for-a-web-page/</guid>
</item>
<item>
<title>(CSS) CSS Print Media - tutrinh211</title>
<link>http://snipplr.com/view/62635/css-print-media/</link>
<description><![CDATA[ <p>Example of using CSS @media print function for your page</p> ]]></description>
<pubDate>Thu, 19 Jan 2012 03:49:54 GMT</pubDate>
<guid>http://snipplr.com/view/62635/css-print-media/</guid>
</item>
<item>
<title>(CSS) Show links on webpage print - claudiowebdesign</title>
<link>http://snipplr.com/view/57797/show-links-on-webpage-print/</link>
<description><![CDATA[ <p>On screen:
Click here to see the pics!

On print:
Click here [link: http://www.shabada.boh] to see the pics!</p> ]]></description>
<pubDate>Sat, 13 Aug 2011 04:04:55 GMT</pubDate>
<guid>http://snipplr.com/view/57797/show-links-on-webpage-print/</guid>
</item>
<item>
<title>(CSS) Print styles - paul66</title>
<link>http://snipplr.com/view/47943/print-styles/</link>
<description><![CDATA[ <p>Any decent site should be print ready, as even though we live in a technology driven time, people still like to have  a hard copy of some information. This snippet firstly uses a css media declaration, allowing you to include this in your main stylesheet, and not having to place another link in the head of your document. This benefits load time, as even when the page inst being printed, a browser will always download that extra css file, generating an extra http request. The snippet then goes on to include some useful print styles such as printing our link urls, and so on.</p> ]]></description>
<pubDate>Thu, 27 Jan 2011 04:15:13 GMT</pubDate>
<guid>http://snipplr.com/view/47943/print-styles/</guid>
</item>
<item>
<title>(CSS) Force page breaks when printing your document - blueocto</title>
<link>http://snipplr.com/view/46361/force-page-breaks-when-printing-your-document/</link>
<description><![CDATA[ <p>With this line of code you can control places where you want your pages to break when printing a document.</p> ]]></description>
<pubDate>Sat, 01 Jan 2011 03:12:32 GMT</pubDate>
<guid>http://snipplr.com/view/46361/force-page-breaks-when-printing-your-document/</guid>
</item>
<item>
<title>(CSS) Print Stylesheet Links - duncanmcdougall</title>
<link>http://snipplr.com/view/44396/print-stylesheet-links/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 19 Nov 2010 04:02:04 GMT</pubDate>
<guid>http://snipplr.com/view/44396/print-stylesheet-links/</guid>
</item>
<item>
<title>(CSS) CSS: Printer Friendly Header Visibility Styles - karlhorky</title>
<link>http://snipplr.com/view/36887/css-printer-friendly-header-visibility-styles/</link>
<description><![CDATA[ <p>When developing a website, an important consideration is accessibility on other media, including the medium of print. However, the printing engines of most browsers render content differently to allow for simple printed pages. One of the most notable differences is the omission of background images by default in modern browsers' print output. Background images are commonly used for header elements, which causes missing branding in the resulting printed pages.
 
One option defined in this snippet is to add markup after your normal header for a 0 pixel by 0 pixel `` element (your print version header), and then style the two headers as invisible and visible based upon the stylesheet medium. So when you're viewing the screen version of the page the normal header will be visible and the print header will be an invisible element with a width and height of 0 pixels. With the print version of the page the normal header will not be displayed at all and the print header will be a visible element that is floated and correctly sized.

This solution has been tested to work in:

*  Microsoft Internet Explorer 6, 7, 8
*  Mozilla Firefox 3.6
*  Google Chrome 5
*  Apple Safari 4
*  Opera 10</p> ]]></description>
<pubDate>Thu, 08 Jul 2010 04:43:28 GMT</pubDate>
<guid>http://snipplr.com/view/36887/css-printer-friendly-header-visibility-styles/</guid>
</item>
<item>
<title>(CSS) Force a Page Break When Printing a Web Page - bradless</title>
<link>http://snipplr.com/view/32613/force-a-page-break-when-printing-a-web-page/</link>
<description><![CDATA[ <p>This will force a page break where this class appears.</p> ]]></description>
<pubDate>Wed, 21 Apr 2010 15:44:45 GMT</pubDate>
<guid>http://snipplr.com/view/32613/force-a-page-break-when-printing-a-web-page/</guid>
</item>
<item>
<title>(CSS) Print Page Breaks - paulgrenwood</title>
<link>http://snipplr.com/view/20130/print-page-breaks/</link>
<description><![CDATA[ <p>While most of the internet users prefer to read content online but some of your users might like to print your article. With CSS you can control the page breaks within content just add this CSS class to your stylesheet and add this class to any tag which you would like to print on next page.</p> ]]></description>
<pubDate>Wed, 23 Sep 2009 15:41:43 GMT</pubDate>
<guid>http://snipplr.com/view/20130/print-page-breaks/</guid>
</item>
<item>
<title>(CSS) css image swap - thesmu</title>
<link>http://snipplr.com/view/18311/css-image-swap/</link>
<description><![CDATA[ <p>You will see that it’s pretty basic – setting width and height attributes for the image, and basically just telling the browser “when someone hovers over the image, make it disappear” – and it simply reveals the background image for the div – your “hover” state.

This, of course, will work in all manner of ways. If you have a navigational list, simply replace the  with . You will also have to separate them – if you’re using 12 different images (6 images for the “on” state, and 6 for “off” – 2 images for each link), you’ll have to set 6 different classes for each image, since none will have the same images representing them.

So yes, it does increase your CSS filesize. But, if you’re looking for a certain type of display, and you (or your client) desires a particular font, size and color for certain elements on the site, this is an excellent alternative to using a javascript image replacement. An added bonus – users who have javascript turned off in their browsers will still see the rollover effect.

Now, keep in mind, you have to deal with IE. (yeah, I bet you weren’t expecting that!) Well, the thing with IE is, it has problems caching background images. So if you move your mouse over the above stuff in IE, it’ll change as expected – but if you move ever so slightly, you’re going to see the blue flash back over. So as you slowly move your mouse across the image, it’ll flicker “redblueredblueredblue” – which is as annoying as hell.

This is actually easy to fix. In your header (or if you’re using a conditional comment to pull in an external stylesheet for IE, simply add this line to the bottom of the IE-specific stylesheet):



You must be sure that, for IE, that the “background-position” attribute is NOT set. If you set a background-position for the div, then the flicker will reappear.

Otherwise, you’re set! Enjoy your javascript-free rollovers. :)

Tested on Windows XP: FF 1.0.7, FF2, FF3, IE 8, IE 7, IE 6.0, IE 5.5, IE 5.0, Opera 8 and Netscape 7.
Tested on Mac OSX Tiger: Safari 2.0, Mozilla Firefox 1.0.6, and IE 5.2. (that last one has a slight padding glitch, which is a result of my global stylesheet – easily fixed, if I really felt like dealing with it…but the point is, the rollover effect does work perfectly there.)
Tested on Mac OSX Leopard: FF3, Safari 3.2.1, Camino 1.6.6, Opera 9.63.</p> ]]></description>
<pubDate>Fri, 14 Aug 2009 07:12:17 GMT</pubDate>
<guid>http://snipplr.com/view/18311/css-image-swap/</guid>
</item>
<item>
<title>(CSS) CSS class for not displaying tag groups in print pages - HubertGaulin</title>
<link>http://snipplr.com/view/13892/css-class-for-not-displaying-tag-groups-in-print-pages/</link>
<description><![CDATA[ <p>From this article, Martin "mpot" Pot mention:

" The above CSS definition is defining a style called noprint, and will only be applied to printed content. Setting the display property to none means any content using this CSS style will not be displayed when printed, but will be displayed for all other media types. "</p> ]]></description>
<pubDate>Wed, 08 Apr 2009 15:48:00 GMT</pubDate>
<guid>http://snipplr.com/view/13892/css-class-for-not-displaying-tag-groups-in-print-pages/</guid>
</item>
<item>
<title>(CSS) Go Green With CSS Print Stylesheets - neal_grosskopf</title>
<link>http://snipplr.com/view/12956/go-green-with-css-print-stylesheets/</link>
<description><![CDATA[ <p>Learn how to use CSS to save the environment by not wasting unnecessary paper and ink.</p> ]]></description>
<pubDate>Tue, 10 Mar 2009 08:11:22 GMT</pubDate>
<guid>http://snipplr.com/view/12956/go-green-with-css-print-stylesheets/</guid>
</item>
<item>
<title>(CSS) Force Specific Content to Print in Landscape Orientation - localhorst</title>
<link>http://snipplr.com/view/7127/force-specific-content-to-print-in-landscape-orientation/</link>
<description><![CDATA[ <p>This handy trick works in IE5.5/Win and newer. It assumes that the default printer orientation is portrait.</p> ]]></description>
<pubDate>Fri, 04 Jul 2008 12:06:48 GMT</pubDate>
<guid>http://snipplr.com/view/7127/force-specific-content-to-print-in-landscape-orientation/</guid>
</item>
<item>
<title>(CSS) Print style for href - remysharp</title>
<link>http://snipplr.com/view/3713/print-style-for-href/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 16 Sep 2007 03:09:53 GMT</pubDate>
<guid>http://snipplr.com/view/3713/print-style-for-href/</guid>
</item>
</channel>
</rss>
