skip to content
IX Web Hosting

IE6 AlphaImageLoader with links error

14th March 2008

The problem...

IE6 does not recognise the links when placed over an absolute positioned background .png image.



The solution...

Use an outer 'positioner' div for the absolute positioning, give the ul no positioning, and finally give the links a relative position.



Support CSS play


If every visitor made a £5 GBP donation each year then I could offer all my demos for FREE.

www.wix.com

CSS play recommend

Free, practical CSS menus, layouts, and examplesPSD to HTMLSitegrinder

CSS play Recommend


Information

Whilst working on a menu for a client I had need to use a background image in an absolute positioned <ul> in .png format which required the use of Microsoft's AlphaImageLoader filter to render this correctly. Unfortunately this screwed up the list of links that were contained within the <ul> and made then unselectable.

After much trial and error I found that the only way to get this to function correctly was to have the containing <ul> with no positioning and the links with relative positioning, and the easiest way to do this was to have an extra container to hold the <ul> which was absolutely positoned thus removing the need to have an absolutely positioned <ul>.

If you are viewing in IE6 you can see the problem in the first image above where the links are not selectable and do not have a :hover state.

The second image has been restyled with an extra containing div and now the links have a :hover state and are slectable.

The special css for IE6 has been placed in its own stylesheet within conditional comments to hide it from other browsers and also the w3.org validator.





Copyright

You may use this method on your personal 'non-profit' web site without seeking my permission. A link back to CSSplay is always appreciated.

Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.



Testimonial

"The citroen.co.uk web site uses
CSS play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."

Damon Clark - Brandwidth