<?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>Paul Randall &#187; browsers</title>
	<atom:link href="https://paulrandall.com/tag/browsers/feed/" rel="self" type="application/rss+xml" />
	<link>https://paulrandall.com</link>
	<description>Experimenting for a living.</description>
	<lastBuildDate>Sat, 15 Mar 2025 15:32:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Background Alignment Bug Fix</title>
		<link>https://paulrandall.com/2009/08/14/background-alignment-bug-fix/</link>
		<comments>https://paulrandall.com/2009/08/14/background-alignment-bug-fix/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 20:08:06 +0000</pubDate>
		<dc:creator><![CDATA[Paul]]></dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://prandall.com/?p=143</guid>
		<description><![CDATA[I have recently been working on sites which have had the need for pixel perfect alignment, and I came across an alignment anomaly among the major browsers. Previously, I have used IE7/ IE6 specific style sheets with completely new backgrounds, each 1px to the left or right of the original to compensate, but I decided [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I have recently been working on sites which have had the need for pixel perfect alignment, and I came across an alignment anomaly among the major browsers.</p>
<p>Previously, I have used IE7/ IE6 specific style sheets with completely new backgrounds, each 1px to the left or right of the original to compensate, but I decided to do some digging and found this blog post:</p>
<p><a href="http://www.sohtanaka.com/web-design/1px-background-alignment-bug/">http://www.sohtanaka.com/web-design/1px-background-alignment-bug/</a></p>
<p>One of the comments I came across suggested a very simple alternative to multiple stylesheets and images, and is the version I used in my recent design:</p>
<blockquote><p><code>html{background: #242424 url('../img/background.gif') repeat-y center; margin-left: -.1px; /*1px shifting hack*/}</code></p></blockquote>
<p>A simple use of a margin allows the same image to be used for all browsers. What&#8217;s even better is that, although technically a <em>hack</em>, it is <a href="http://jigsaw.w3.org/css-validator/">valid</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://paulrandall.com/2009/08/14/background-alignment-bug-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
