<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Advanced CSS Design Resources - last-child.com &#187; media</title>
	<atom:link href="http://www.last-child.com/category/css/media/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.last-child.com</link>
	<description>CSS Toys for Professional Web Developers</description>
	<lastBuildDate>Mon, 19 Dec 2011 18:30:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Multiple medias in the print.css</title>
		<link>http://www.last-child.com/multiple-medias-in-the-printcss/</link>
		<comments>http://www.last-child.com/multiple-medias-in-the-printcss/#comments</comments>
		<pubDate>Wed, 29 Mar 2006 23:33:37 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:block]]></category>
		<category><![CDATA[:none]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.last-child.com/multiple-medias-in-the-printcss/</guid>
		<description><![CDATA[Let&#8217;s say you have a printer-friendly page that consolidates information from multiple sections. The page uses the print.css as all instead of just print. Let&#8217;s also assume you want to show things on the screen, such as a link back to the referral page, and different elements on the printed page, such as the url [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have a printer-friendly page that consolidates information from multiple sections.  The page uses the print.css as all instead of just print. Let&#8217;s also assume you want to show things on the screen, such as a link back to the referral page, and different elements on the printed page, such as the url of the referral page. </p>
<h3>Simple HTML Example</h3>
<p><code lang="HTML"></p>
<p class="noprint"><a href="/" onclick="javascript:history.go(-1); return:false;">Go back to the last page</a>.</p>
<p class="print">http://www.last-child.com/multiple-medias-in-the-print.css</p>
<p></code></p>
<h3>CSS solution</h3>
<p>You can include multiple medias in one style sheet. Just declare the special rules under @media</p>
<p><code lang="CSS"><br />
@media print{/*show printer only elements, hide screen only elements */<br />
.noprint {display:none;}<br />
.print {display:block;}<br />
 }<br />
</code></p>
<p>Your main CSS file would have already declared .print {display:none;}.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/multiple-medias-in-the-printcss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

