<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Printing watermarks with CSS</title>
	<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS/</link>
	<description>Comments on Ask MetaFilter post Printing watermarks with CSS</description>
	<pubDate>Wed, 06 Apr 2005 00:45:08 -0800</pubDate>
	<lastBuildDate>Wed, 06 Apr 2005 00:45:08 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Printing watermarks with CSS</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS</link>	
		<description>What CSS properties do you need to set to get a DIV to show up on every page of the printed version of a web page? &lt;br /&gt;&lt;br /&gt; I&apos;m doing some work for a company that requires a confidentially notice on all printed documents. The notice could be an image but I&apos;d prefer to use a DIV so that the contents of the notice can be easily edited. It would also be nice if the notice wasn&apos;t rendered on top of other content. I&apos;m using separate style sheets for web and print versions a-la the wikipedia monobook skin.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.17180</guid>
		<pubDate>Wed, 06 Apr 2005 00:41:38 -0800</pubDate>
		<dc:creator>mexican</dc:creator>
		
			<category>CSS</category>
		
			<category>DHTML</category>
		
	</item> <item>
		<title>By: snowgoon</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288365</link>	
		<description>&lt;a href=&quot;http://www.thedesignexperience.org/openacs/css-print&quot;&gt;Try this&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Basically you set the DIV for the screen CSS to:&lt;br&gt;
&lt;br&gt;
display: none;&lt;br&gt;
&lt;br&gt;
And for the print CSS to:&lt;br&gt;
&lt;br&gt;
display: inline;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288365</guid>
		<pubDate>Wed, 06 Apr 2005 00:45:08 -0800</pubDate>
		<dc:creator>snowgoon</dc:creator>
	</item><item>
		<title>By: mexican</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288372</link>	
		<description>I already know how to separate screen and print elements. What I want to do is have on print element that shows up on every physical page of the printed version. I read somewhere that this could be accomplished using z-index and float but I couldn&apos;t find any examples and haven&apos;t been getting very far with trial and error.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288372</guid>
		<pubDate>Wed, 06 Apr 2005 01:08:32 -0800</pubDate>
		<dc:creator>mexican</dc:creator>
	</item><item>
		<title>By: sbutler</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288374</link>	
		<description>&lt;a href=&quot;http://www.w3.org/TR/CSS21/visuren.html#choose-position&quot;&gt;http://www.w3.org/TR/CSS21/visuren.html#choose-position&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Specifically, you want &quot;position: fixed;&quot;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288374</guid>
		<pubDate>Wed, 06 Apr 2005 01:12:01 -0800</pubDate>
		<dc:creator>sbutler</dc:creator>
	</item><item>
		<title>By: sbutler</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288375</link>	
		<description>(note: I don&apos;t know that this actually &lt;em&gt;works&lt;/em&gt;, but the spec says that is how it should behave)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288375</guid>
		<pubDate>Wed, 06 Apr 2005 01:12:36 -0800</pubDate>
		<dc:creator>sbutler</dc:creator>
	</item><item>
		<title>By: sbutler</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288382</link>	
		<description>Okay, works as advertised on a nightly build of Camino. My test case is at &lt;a href=&quot;http://www.ics.uiuc.edu/~sbutler1/fixed.html&quot;&gt;http://www.ics.uiuc.edu/~sbutler1/fixed.html&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288382</guid>
		<pubDate>Wed, 06 Apr 2005 01:33:34 -0800</pubDate>
		<dc:creator>sbutler</dc:creator>
	</item><item>
		<title>By: mexican</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288385</link>	
		<description>&lt;code&gt;position: fixed;&lt;/code&gt; looks like what I want. Now I just have to play with margins to keep my watermark off my other content. Thanks!!!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288385</guid>
		<pubDate>Wed, 06 Apr 2005 01:43:04 -0800</pubDate>
		<dc:creator>mexican</dc:creator>
	</item><item>
		<title>By: TheDonF</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288425</link>	
		<description>You want to be careful as IE (quelle surprise) doesn&apos;t support :fixed.  It&apos;s the only browser not to.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288425</guid>
		<pubDate>Wed, 06 Apr 2005 05:14:13 -0800</pubDate>
		<dc:creator>TheDonF</dc:creator>
	</item><item>
		<title>By: kirkaracha</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288479</link>	
		<description>Two ways to do :fixed in IE: &lt;a href=&quot;http://jessey.net/simon/articles/007.html&quot;&gt;CSS only&lt;/a&gt; and &lt;a href=&quot;http://www.svendtofte.com/code/max_width_in_ie/&quot;&gt;using dynamic properties&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288479</guid>
		<pubDate>Wed, 06 Apr 2005 06:51:01 -0800</pubDate>
		<dc:creator>kirkaracha</dc:creator>
	</item><item>
		<title>By: Dick Paris</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288541</link>	
		<description>For what it&apos;s worth, sbutler&apos;s example does not keep the fixed element on every printed page within Safari. It works as a fixed screen element but not as a fixed printed page element. Works in Firefox though. :-)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288541</guid>
		<pubDate>Wed, 06 Apr 2005 08:08:30 -0800</pubDate>
		<dc:creator>Dick Paris</dc:creator>
	</item><item>
		<title>By: nakedcodemonkey</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288602</link>	
		<description>Keep in mind that &quot;requires&quot; and CSS don&apos;t really mix.  Not every user-agent (i.e. browsers, but also screenreaders, PDAs, etc) will support CSS, let alone postion:fixed, let alone @print.  If the watermark absolutely positively has to be there no matter what, you probably want to make the content available only through media where you have more control (PDF?  Flash?).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288602</guid>
		<pubDate>Wed, 06 Apr 2005 09:52:33 -0800</pubDate>
		<dc:creator>nakedcodemonkey</dc:creator>
	</item><item>
		<title>By: djwudi</title>
		<link>http://ask.metafilter.com/17180/Printing-watermarks-with-CSS#288915</link>	
		<description>Hmmm...just brainstorming here. &lt;br&gt;
&lt;br&gt;
I&apos;m pretty sure that what&apos;s been suggested above won&apos;t quite do it (at least, not across all browsers), as it won&apos;t put the watermark across every single printed page, merely the page that the `position: fixed;` resolves to.&lt;br&gt;
&lt;br&gt;
So, while I haven&apos;t worked out code for any of this, here&apos;s what&apos;s in my head:&lt;br&gt;
&lt;br&gt;
Add a `div` that only shows on the printed sheet, floats to one side or the other, and essentially displays as a column the height of the entire document. Create your watermark as a graphic running vertically, and set it into that `div` as a `background: repeat-x` (or maybe `repeat-y`, I can never remember which is horizontal and which is vertical without futzing around).&lt;br&gt;
&lt;br&gt;
As long as the `div` is hidden in the screen version, you&apos;re good, and the print version will have a vertical watermark running down the outside of one side (whichever you chose).&lt;br&gt;
&lt;br&gt;
I think.&lt;br&gt;
&lt;br&gt;
As I said, I haven&apos;t actually tried this, it&apos;s just the first solution that popped into my head.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.17180-288915</guid>
		<pubDate>Wed, 06 Apr 2005 19:47:36 -0800</pubDate>
		<dc:creator>djwudi</dc:creator>
	</item>
	</channel>
</rss>
