More background:transparent woes in IE
Jul 2 2008 · Web Design
A similar issue to the one I mentioned in my previous post. The problem is the same, the behavior of anchor elements is broken, however, the cause seems to be different.
The image above demonstrates the issue. The area enclosed by the blue box is the anchor element. It’s a block-level element (display:block) and positioned using position:absolute. The area enclosed by the white lines is part of a paragraph element. When the paragraph element overlaps the anchor element, the functionality of the anchor element is broken (oddly, the functionality on the border of the anchor element is still active).
I’ve found two solutions.
- Reduce the width of the paragraph element or it’s container to prevent the overlap
- Use a transparent gif for the background of the anchor element. The same solution for the issue described in my previous post