Sticky hover option

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

23-May-10 21:47
Hi All,

I am not sure if this can be done through CSS or not, but I thought I would start here. Here is my test site to reference: http://bigdogcattle.com/test/

Is there any way to keep the parent link selected on y menu (as shown when mouse over) when the mouse moves to the sub menu?

P.S. Let me know if you need to see any of my code.

--
Thanks,
Jamie
Http://BigDogCattle.com
26-May-10 05:22
Hi Jamie,

Try changing:


#nav li a:hover, .sfhover a {
color:#884214;
text-decoration:underline;
background:url("/images/nav-over.png") left bottom no-repeat;
}


to:


#nav li a:hover, .sfhover a, #nav li:hover>a {
color:#884214;
text-decoration:underline;
background:url("/images/nav-over.png") left bottom no-repeat;
}


The "#nav li:hover>a" should cause a link in the main menu to remain underlined when the link's parent li element is hovered over (ie when the submenu appears). (Won't work in IE6 though.)

Does that help?

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
26-May-10 09:53
That worked great. Thanks for the help.

--
Thanks,
Jamie
Http://BigDogCattle.com
26-May-10 18:15
No problem Jamie - glad it worked.

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/

 
New posts
Old posts

Follow Elated