You may want to "give it layout" in an IE6 specific stylesheet with something 
like:

#elem a:link, #elem a:visited {
 display:inline-block;
}
#elem a:link, #elem a:visited {
 display:block;
}

I know it sounds stupid but worked for me for this same problem.

More info here: http://www.satzansatz.de/cssd/onhavinglayout.html
And here: http://haslayout.net/haslayout




----- Original Message ----
From: Sohail Aboobaker <[EMAIL PROTECTED]>
To: Adam Ducker <[EMAIL PROTECTED]>
Cc: css-d@lists.css-discuss.org
Sent: Friday, July 11, 2008 12:27:57 AM
Subject: Re: [css-d] li:hover for IE6

Hi,

I tried that but it only changes the background for the length of the text
of the <a> tag. I tried display:block. Am I missing something?

Regards,
Sohail

On Thu, Jul 10, 2008 at 5:23 PM, Adam Ducker <[EMAIL PROTECTED]> wrote:

> Sohail Aboobaker wrote:
>
>> Hi,
>>
>> It must a really newbie question but is li:hover doesn't behave correctly
>> in
>> IE. The following in the stylesheet does not change the background color
>> in
>> IE where it works fine with firefox.
>>
>>  #secnavul li.hover {
>>     background-color:#B5761C;
>>   text-decoration: none;
>>  }
>>
>> The color doesn't change in IE. Same style when applied to "  #secnavul li
>> a:hover" seems to work fine in IE and Firefox.
>>
>> Is there a workaround?
>>
>> Also, background images with .png are not supported in IE6. Is this true?
>>
>> Regards,
>> Sohail Aboobaker.
>> ______________________________________________________________________
>> 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/
>>
>>
>>
>>
> Sohail:
>
> IE 6 only supports :hover for A tags.  It should be an easy workaround to
> simply put an A tag inside the LI and apply your styles that way.  Maybe
> other readers can come up with a quick example.
>
> -Adam Ducker
>
______________________________________________________________________
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/



      
______________________________________________________________________
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