The only place I ran into a problem with the background position was
using sprites for the menu on this site: 
I needed to use pixels for left and top values so didn't try 'center',
maybe it would work. In the end I just used a conditional comment
stylesheet to deliver IE6 a text only menu instead.
The beauty of the script was not needing to set the filter on numerous
elements as it searches for all PNGs and fixes them, but as mentioned it
does require JavaScript as a small disadvantage. If you only want 1 or 2
PNGs then the filter is probably lighter.


From: []
On Behalf Of Brett Patterson
Sent: 29 April 2009 18:00
Subject: Re: [WSG] Background image not visible in ie

Have you used the CSS:     background-position: center center;   ?

Brett P.

On Wed, Apr 29, 2009 at 12:48 PM, Ben Dodson <> wrote:

        It does of course require JavaScript which isn't strictly
necessary as you can get the same effect with just CSS (especially for
the purposes of the example given initially). 

        With regards to background image positioning, I'm fairly sure
there is no way to stop it going to position (0,0) as that's how the
Microsoft Filter works.



        Feeling social?  Connect with me on various social networks at - You might also want to follow me on
Twitter at

        On 29 Apr 2009, at 13:46, James Leslie wrote:

                The guys over at unit interactive also have a help
script to help fix the issues with transparent PNG images in IE6.


                 I highly recommend this script.... very handy and
concise. The one problem I have noticed with it is that it doesn't
respect background position on background images - everything goes to
(0,0) . If this is ok, it is a great solution and can of course be
applied via a conditional comment meaning no superfluous code for
'decent' browsers.




                List Guidelines:


List Guidelines:

Reply via email to