Background image problems inside relative container

<A> elements with a background image have a problem. It is in effect (as far as I can see):

Bug fix: The element must get position:relative, which creates problems for IE5.0, as it then ignores padding-left on the element.

Test page Workaround is included
Reported by: Jesper Rønn-Jensen.

(Orphaned), Explorer 5-6 Windows | Reported on 13 December 2004.

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:

Search reports by browser:


(Add your own)

1 Posted by 1stpixel on 3 February 2005

This bug appears even when element is not on 'display:block;' I can't remember the link / page where i read about this, but it seems that ie always trys to center bg-images. so you need to set it's bg-position top left.

2 Posted by r0ss on 26 April 2005

Every list item that had a link in it wasnt showing the list's background image. Now it does.

Cool - So, I added position: relative to my css li declaration and it works.

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.