<?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>Cameron Priem &#187; CSS</title>
	<atom:link href="http://cameronpriem.com/category/code/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://cameronpriem.com</link>
	<description>Professional Software Development</description>
	<lastBuildDate>Tue, 11 Aug 2009 12:12:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FireFox Page Break CSS Not Displaying Correctly</title>
		<link>http://cameronpriem.com/2009/08/firefox-page-break-css-not-displaying-correctly/</link>
		<comments>http://cameronpriem.com/2009/08/firefox-page-break-css-not-displaying-correctly/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 13:10:32 +0000</pubDate>
		<dc:creator>Campo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://cameronpriem.com/?p=49</guid>
		<description><![CDATA[I&#8217;ve always used CSS to handle page breaks when printing from the web, and its always been easy and pretty straight forward to implement.  However FireFox would stop printing after 1 or 2 pages from what should have been about a 10 page print job.
After some googling I found that a fair few people have [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always used CSS to handle page breaks when printing from the web, and its always been easy and pretty straight forward to implement.  However FireFox would stop printing after 1 or 2 pages from what should have been about a 10 page print job.</p>
<p>After some googling I found that a fair few people have been having the same problem as me, only in FireFox though, every other browser is fine.  The problem was the CSS I was using:</p>
<blockquote><p><em>page-break-after:always;</em></p></blockquote>
<p>FireFox didn&#8217;t like this.  From what I found on the web the work around was to use page-break-before instead.  I searched bugzilla to try and find out more details on why this happens, the best I could find was <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=136714" target="_blank">this lengthy discussion</a>, with instances of this problem from 2002.   So my lesson from this is to use <em>page-break-before:always</em> instead of after.</p>
]]></content:encoded>
			<wfw:commentRss>http://cameronpriem.com/2009/08/firefox-page-break-css-not-displaying-correctly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
