Martin Eyles wrote:[color=blue]
> Gérard Talbot wrote:[color=green]
>> Martin Eyles wrote :[color=darkred]
>>> I have made a website that uses image replacement for the two main
>>> headings. It works beautifully in firefox, but in internet explorer
>>> the images appear too far to the right. Does anyone have any idea of
>>> how to fix this?
>>>
>>> The site is at
>>>
>>>
http://www.cafecreate.org/[/color][/color]
>
> Sorry - Fixed the CSS now. Unfortunately the CSS can't be completely
> fixed, as I have to use the filter hack to get transparent images to
> work in IE6. However, this bit of CSS shouldn't affect the headings.
> Also, I'm pretty sure the warnings are unrelated too.
>
> Do you have any ideas now on how to fix things?[/color]
I see nothing on this page that requires the complexity of png alpha
channel opacity - you can get basic transparency with gif (if you even
need that), and then you can throw away all the unnecessary complexity
introduced by ie's lack of support for png.
Alternatively, if you do have a need for alpha channel opacity:
It seems slightly eccentric to use an empty span to put in a background
image for your title. I'd make it (H1 & H2) a block level element of the
right width instead.
What ie appears to be doing is calculating the width & therefore the
centred position of your titles before the image is loaded, so if your
titles were centred blocks of the right width, your problem would
probably go away.
Your rounded corners have the wrong background colour, btw (white).
Chris