<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 1px Background Image Shift</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Jan 2012 01:21:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: C</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/comment-page-1/#comment-619480</link>
		<dc:creator>C</dc:creator>
		<pubDate>Tue, 27 Jan 2009 19:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/#comment-619480</guid>
		<description>This was driving me nuts tonight too - I&#039;m so glad I found this article! I had FF shifting one pixel to the left on a background image, yet Safari was fine. The trick of adding the negative .1px margin as mentioned by Brad solved it for me.</description>
		<content:encoded><![CDATA[<p>This was driving me nuts tonight too &#8211; I&#039;m so glad I found this article! I had FF shifting one pixel to the left on a background image, yet Safari was fine. The trick of adding the negative .1px margin as mentioned by Brad solved it for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atom</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/comment-page-1/#comment-611555</link>
		<dc:creator>Atom</dc:creator>
		<pubDate>Thu, 04 Dec 2008 00:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/#comment-611555</guid>
		<description>Found this hack that seems to solve the problem:

&lt;a href=&quot;http://developedtraffic.com/2005/09/23/css-ie-one-pixel-image-offset-hack/&quot; rel=&quot;nofollow&quot;&gt;http://developedtraffic.com/2005/09/23/css-ie-one-pixel-image-offset-hack/&lt;/a&gt;

It involves giving IE one margin and all other browsers a different margin. Any non-hack method that anyone finds would be appreciated.</description>
		<content:encoded><![CDATA[<p>Found this hack that seems to solve the problem:</p>
<p><a href="http://developedtraffic.com/2005/09/23/css-ie-one-pixel-image-offset-hack/" rel="nofollow">http://developedtraffic.com/2005/09/23/css-ie-one-pixel-image-offset-hack/</a></p>
<p>It involves giving IE one margin and all other browsers a different margin. Any non-hack method that anyone finds would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atom</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/comment-page-1/#comment-611549</link>
		<dc:creator>Atom</dc:creator>
		<pubDate>Wed, 03 Dec 2008 23:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/#comment-611549</guid>
		<description>I have been trying to solve this bug all morning! I&#039;m glad it wasn&#039;t just me or any sub-par CSS skills I may have. 

The same exact issue: I have a background image and a centered div with a background image. Now make the two line up pixel perfect in both IE6 and Firefox/Chrome...on one browser it is perfect, the other is shifted by one pixel.

If anyone comes across a solution, please post!

Atom</description>
		<content:encoded><![CDATA[<p>I have been trying to solve this bug all morning! I&#039;m glad it wasn&#039;t just me or any sub-par CSS skills I may have. </p>
<p>The same exact issue: I have a background image and a centered div with a background image. Now make the two line up pixel perfect in both IE6 and Firefox/Chrome&#8230;on one browser it is perfect, the other is shifted by one pixel.</p>
<p>If anyone comes across a solution, please post!</p>
<p>Atom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathaniel</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/comment-page-1/#comment-600583</link>
		<dc:creator>Nathaniel</dc:creator>
		<pubDate>Mon, 06 Oct 2008 18:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/#comment-600583</guid>
		<description>I have a problem with a site I&#039;m developing which maybe related. For such a small issue it is VERY annoying...especially as I cannot pinpoint what is causing the issue.

I have a centered horizontal background slice which repeats (y-axis) underneath my main wrapper for all of my content (header, menu, content , footer etc).

IE6 and 7 behave the same, Firefox does it&#039;s own thing and so does Safari.

URL
http://www.cleancuisine.co.uk/index.asp

CSS
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 0.9em;
color: #333333;
background-color: #f6921e;
margin: 0px;
background-image: url(../media/gfx/clean_cuisine_slice.gif);
background-repeat: repeat-y;
background-position: center;
text-align: center;
}
#wrapper {
width: 960px;
margin-right: auto;
margin-left: auto;
height: 100%;
text-align: left;
}

The slice is 1040px wide with a 960px wide white area to give the shadow effect on the outside.

EI6/EI7
Looks like the background has moved over to the RIGHT by 1px.

Firefox
All pages okay except &quot;http://www.cleancuisine.co.uk/services_pricing/index.asp&quot; where the background has moved LEFT by 1px.

Safari
All pages okay except &quot;http://www.cleancuisine.co.uk/services_pricing/index.asp&quot; entire page shifts slightly - probably another issue.

If anyone has the time I would appreciate some advice?

Thanks</description>
		<content:encoded><![CDATA[<p>I have a problem with a site I&#039;m developing which maybe related. For such a small issue it is VERY annoying&#8230;especially as I cannot pinpoint what is causing the issue.</p>
<p>I have a centered horizontal background slice which repeats (y-axis) underneath my main wrapper for all of my content (header, menu, content , footer etc).</p>
<p>IE6 and 7 behave the same, Firefox does it&#039;s own thing and so does Safari.</p>
<p>URL<br />
<a href="http://www.cleancuisine.co.uk/index.asp" rel="nofollow">http://www.cleancuisine.co.uk/index.asp</a></p>
<p>CSS<br />
body {<br />
font-family: Arial, Helvetica, sans-serif;<br />
font-size: 0.9em;<br />
color: #333333;<br />
background-color: #f6921e;<br />
margin: 0px;<br />
background-image: url(../media/gfx/clean_cuisine_slice.gif);<br />
background-repeat: repeat-y;<br />
background-position: center;<br />
text-align: center;<br />
}<br />
#wrapper {<br />
width: 960px;<br />
margin-right: auto;<br />
margin-left: auto;<br />
height: 100%;<br />
text-align: left;<br />
}</p>
<p>The slice is 1040px wide with a 960px wide white area to give the shadow effect on the outside.</p>
<p>EI6/EI7<br />
Looks like the background has moved over to the RIGHT by 1px.</p>
<p>Firefox<br />
All pages okay except &#034;http://www.cleancuisine.co.uk/services_pricing/index.asp&#034; where the background has moved LEFT by 1px.</p>
<p>Safari<br />
All pages okay except &#034;http://www.cleancuisine.co.uk/services_pricing/index.asp&#034; entire page shifts slightly &#8211; probably another issue.</p>
<p>If anyone has the time I would appreciate some advice?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/comment-page-1/#comment-595943</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Fri, 12 Sep 2008 17:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/#comment-595943</guid>
		<description>I had the same problem when updating our website.

To prevent this 1 pixel shift in Firefox I added margin-left: -.1px to the content div (thats a negative 0.1 px). This fixed the shift in Firefox 2 and 3 while still working for IE7.  Of course this is not ideal, but it works.

This did not fix the problem for Internet Explorer 6 (IE6).  I minimized it by color choice in my centered background image.</description>
		<content:encoded><![CDATA[<p>I had the same problem when updating our website.</p>
<p>To prevent this 1 pixel shift in Firefox I added margin-left: -.1px to the content div (thats a negative 0.1 px). This fixed the shift in Firefox 2 and 3 while still working for IE7.  Of course this is not ideal, but it works.</p>
<p>This did not fix the problem for Internet Explorer 6 (IE6).  I minimized it by color choice in my centered background image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/comment-page-1/#comment-546931</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 31 Jan 2008 00:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/#comment-546931</guid>
		<description>From what I gather, it has to do with simple math. There&#039;s no such thing as a half pixel in web development. So when the view port decreases or increases by 1px, the rendering engine has a choice. Whether to move the bg image over one pixel or wait till the next 1px respective change. Seems IE rounds either up or down, while FF rounds either down or up.

With conditional comments, I created two background images, one is 1px wider than the other, otherwise identical. But served the wider to IE and the slimmer to FF, both browsers now properly calculate the background position now.</description>
		<content:encoded><![CDATA[<p>From what I gather, it has to do with simple math. There&#039;s no such thing as a half pixel in web development. So when the view port decreases or increases by 1px, the rendering engine has a choice. Whether to move the bg image over one pixel or wait till the next 1px respective change. Seems IE rounds either up or down, while FF rounds either down or up.</p>
<p>With conditional comments, I created two background images, one is 1px wider than the other, otherwise identical. But served the wider to IE and the slimmer to FF, both browsers now properly calculate the background position now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jackie Bese</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/comment-page-1/#comment-532632</link>
		<dc:creator>Jackie Bese</dc:creator>
		<pubDate>Sat, 13 Oct 2007 01:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/08/1px-background-image-shift/#comment-532632</guid>
		<description>I ran into this same problem... it seems to work in IE but your page linked above does not work in Firefox. Has the browser potentially been upgraded and this no longer works? 

I looked at the page:http://www.scriptygoddess.com/resources/1441test/test2.html

in both IE &amp; Firefox. IE it was okay, little black line down the side in Firefox.</description>
		<content:encoded><![CDATA[<p>I ran into this same problem&#8230; it seems to work in IE but your page linked above does not work in Firefox. Has the browser potentially been upgraded and this no longer works? </p>
<p>I looked at the page:<a href="http://www.scriptygoddess.com/resources/1441test/test2.html" rel="nofollow">http://www.scriptygoddess.com/resources/1441test/test2.html</a></p>
<p>in both IE &amp; Firefox. IE it was okay, little black line down the side in Firefox.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

