<?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>dan.forys.co.uk &#187; firefox</title>
	<atom:link href="http://dan.forys.co.uk/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://dan.forys.co.uk</link>
	<description>Dan is a web developer in London. He is interested in all things Internet, Linux and Mac.</description>
	<lastBuildDate>Fri, 22 Jan 2010 14:25:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Intermittent 1px gap in Firefox 3</title>
		<link>http://dan.forys.co.uk/intermittent-1px-gap-in-firefox-3/</link>
		<comments>http://dan.forys.co.uk/intermittent-1px-gap-in-firefox-3/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 12:36:56 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.danforys.com/?p=33</guid>
		<description><![CDATA[My work has just pushed out an update, upgrading our users to Firefox 3. Naturally, we&#8217;ve been busy looking through our internally produced sites to check all is fine in the new version. In 99% of cases, all our sites look the same in Firefox 3, apart from one notable exception. In this one case, [...]]]></description>
			<content:encoded><![CDATA[<p>My work has just pushed out an update, upgrading our users to Firefox 3. Naturally, we&#8217;ve been busy looking through our internally produced sites to check all is fine in the new version.</p>
<p>In 99% of cases, all our sites look the same in Firefox 3, apart from one notable exception. In this one case, there is a 1px gap between the left-hand margin (which is centred using &#8220;margin-left: auto&#8221;) and the header image. Being the perfectionists we are, we don&#8217;t want a 1px white gap in our nice header.</p>
<p>Oddly, this 1px gap would come and go as the browser window is horizontally resized. This behaviour set alarm bells ringing that it&#8217;s some kind of rounding error in the &#8220;auto&#8221; positioning vs the exact pixel dimensions of our centred container.</p>
<p>After a bit of searching, we found an entry in <a href="http://ejohn.org/blog/sub-pixel-problems-in-css/" target="_blank">John Resig&#8217;s blog</a> (of <a href="http://jquery.com/" target="_blank">JQuery</a> fame), where he has stumbled upon the issue and developed a test case for the main browsers. Turns out that fixing it is a challenge, as all the browsers round the numbers differently. Problem is, there&#8217;s no standard for how the browsers should round the pixels, so fixing it in one browser will almost certainly break it in another.</p>
<p>Ho hum, here&#8217;s hoping for a future standard.</p>
]]></content:encoded>
			<wfw:commentRss>http://dan.forys.co.uk/intermittent-1px-gap-in-firefox-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.064 seconds -->
