On 5/23/06, Philippe Wittenbergh <[EMAIL PROTECTED]> wrote:
>
> On May 23, 2006, at 4:00 PM, jack fredricks wrote:
>
> > The image is absolutely positioned, but I cannot left-click on it to
> > activate the link. I can right-click and open or open in new window,
> > however.
> >
> > The only styling applied to it is position:absolute, so I imagine some
> > of you might have seen this before, and hopefully know a 'fix'.
>
> Your link is absolute positioned, and therefore 'hasLayout' [1]; this
> is what makes the image not registering the mouse-click.
> Some tests and a workaround:
> <http://www.brunildo.org/test/IEaL.html>
> <http://www.brunildo.org/test/IEABlock1.html>
>
> [1] <http://www.satzansatz.de/cssd/onhavinglayout.html>
>
> Philippe


Thanks Philippe,

I'd already tried to give it layout. But after your email I tried
again...with no luck.

I also took the samples from brunildo.org and made the <a> absolutely
positioned, to the same effect.

Here's my latest sample. Again, I'm sorry I've no publically viewable samples.

Lastly, according to [1] making an element position:abs gives it layout.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
<html lang="en">
<head>
        <title>IE5 no click</title>
        <style type="text/css">
<!--    
#appheader
{
        border:3px solid green;
        height:60px;
        position: relative;

}

a
{
  position: absolute;
  height:1%;
  z-index:2;
}

img
{
  z-index:2;
  height:40px;
  display:block;
  position:absolute;
}

-->
        </style>
</head>
<body>
        <div id="appheader">
                <a href="#" title="bleh">
                        <img src="a.gif" alt="bleh" width="400px" height="40px" 
/>
                </a>
        </div>
</body>
</html>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to