You are here: Re: Rollover Image Appearing Where I Don't Want It? « HTML « IT news, forums, messages
Re: Rollover Image Appearing Where I Don't Want It?

Posted by rf on 10/03/26 12:01

"Vik Rubenfeld" <vikr@mindspring.com.invalid> wrote in message
news:vikr-4D128A.09155727012008@earthlink.vsrv-sjc.supernews.net...
> "rf" <rf@invalid.com> wrote:
>
>> Because you have told it to. I think.
>>
>> li:hover works in modern browsers. It does not work in IE.
>>
>> That is one nasty peice of CSS. You should delete it and then gradually
>> add
>> rules and property/values back *as you understand what they are there
>> for*.

[snippage excuses for CSS other than to say:]

A high page ranking does not imply high quality code. Look at google.com.


> Why is the rollover image being displayed when class="current_page"?

<sigh> Did you not read my post. I answered this. Here, I'll repeat it:

Because you have told it to. I think.
li:hover works in modern browsers. It does not work in IE.

You have a rule
#pmenu li.hover {...}

That rule is causing the background to move on hover for *every* list item.
All of them. Even the 'current' one.

The reason this does not happen with IE6 is that IE6, being a broken
browser, does not support hover on anything other than links.

Now, the reason I include the phrase "I think" is that I never actually
tested this in IE6. I just used firebug to remove the above rule and noticed
that things worked with firefox.

BTW '#pmenu li.current_page hover' is never going to work. You are missing a
:

--
Richard.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация