<?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"
	>

<channel>
	<title>danforys.com &#187; Uncategorized</title>
	<atom:link href="http://www.danforys.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danforys.com</link>
	<description>Dan is a web developer in London. He is interested in all things Internet, Linux and Mac.</description>
	<pubDate>Wed, 06 Aug 2008 15:28:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Intermittent 1px gap in Firefox 3</title>
		<link>http://www.danforys.com/2008/07/30/intermittent-1px-gap-in-firefox-3/</link>
		<comments>http://www.danforys.com/2008/07/30/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, there [...]]]></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" onclick="javascript:pageTracker._trackPageview ('/outbound/ejohn.org');">John Resig&#8217;s blog</a> (of <a href="http://jquery.com/" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/jquery.com');">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://www.danforys.com/2008/07/30/intermittent-1px-gap-in-firefox-3/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
