Doing it with style
I am posting this menu to see if anyone has seen this problem or knows of a workaround.
The idea is to have a current page indication that will be removed when hovering other menu links.
For this to work I have set up the current page indication as the last list item in the unordered list and placed it using absolute positioning behind the current page link.
Then using the 'general sibling selecter' ~ (tilde) I can move this to its new position when hovering over other menu links using the style:
.menu li.p3:hover ~ li.slide {left:220px;} etc
Well that was the theory and it works in Firefox, Opera and even IE8. BUT not in Safari or Google Chrome which doesn't appear to allow you to use :hover with ~
If anyone has a workaround or any information on this then please let me know.
24th February 2011
There is now a workaround to this problem in Safari and Chrome by adding a CSS webkit animation to the html that does nothing but 'activates' the :hover tilde styling.
I have also added slide animation for Safari, Chrome, Opera and Firefox v4 beta
Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.
Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.