Pirkka Rannikko wrote:
> When you right click the link to open the browser context menu to
> choose the option "Open link in new tab" IE6 and IE7 don't recognize
> the link and the usual options related to links are not shown in the
> menu. Also the cursor does not change on mouseover but focus outline
> works as usual.
> 
> When the "width" declaration is removed or changed to "auto", the link
> works as it should. Declaration display: inline-block; also triggers
> the issue as well floating the span element.
> 
> You can build around this trap if you know it is there but I noticed
> that several CSS examples that use the Sliding Doors technique have
> not been tested against this.

Hi Pirkka--

Any of IE's hasLayout triggers on the span element will set off this
bug. In this case at least, the 100% width is superfluous (display:block
covers it). The obvious fix here is to remove the width:100% from the
span and apply display:block to the anchor element...and then, try to
avoid triggering 'hasLayout' on the span. I understand this won't always
be the case, but it fixes your example.

<a href="http://www.fi.com"; style="display:block;zoom:1;">
  <span style="display:block;">http://www.fi.com</span>
</a>

Hope it helps.
--Bill



-- 
/**
 * Bill Brown
 * TheHolierGrail.com & MacNimble.com
 * From dot concept...to dot com...since 1999.
 ***********************************************/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to