mouse over on main menu
see: index1.html
Is there any way in the CSS to remove the mouseover effect on the top element when moving down the dropdown menu?
Cheers guys,
Peter
see: index1.html
Is there any way in the CSS to remove the mouseover effect on the top element when moving down the dropdown menu?
Cheers guys,
Peter
The mouse Over effect is controlled by the hover rule.
In the Edit Menu Theme Wizard, On the type and design tabs, select the Hover tab and remove all of the hover styling.
Thanks for that Jason. But as I have already built quite a lot of the site, any chance of telling me the CSS code edit to achieve the result?
Many thanks in advance
Peter
in the menu.css file, change:
ul#cssmw > li:hover > span > a {
background-color: #84B9D9;
background-position: center center;
border-style: none;
color: #006991;
font-family: Arial, Helvetica, sans-serif;
font-size: 9pt;
font-style: normal;
font-weight: bold;
text-align: center;
text-decoration: none;
text-transform: none;
}
ul#cssmw > li.hover > span > a {
background-color: #84B9D9;
background-position: center center;
border-style: none;
color: #006991;
font-family: Arial, Helvetica, sans-serif;
font-size: 9pt;
font-style: normal;
font-weight: bold;
text-align: center;
text-decoration: none;
text-transform: none;
}
to:
ul#cssmw > li:hover > span > a {
/*background-color: #84B9D9;*/
background-position: center center;
border-style: none;
/*color: #006991;*/
font-family: Arial, Helvetica, sans-serif;
font-size: 9pt;
font-style: normal;
font-weight: bold;
text-align: center;
text-decoration: none;
text-transform: none;
}
ul#cssmw > li.hover > span > a {
/*background-color: #84B9D9;*/
background-position: center center;
border-style: none;
/*color: #006991;*/
font-family: Arial, Helvetica, sans-serif;
font-size: 9pt;
font-style: normal;
font-weight: bold;
text-align: center;
text-decoration: none;
text-transform: none;
}
Won't this will stop the hover background colour change when just hovering over the top level too?
Yes it will. that is what was asked for unless I'm missing something.
Thank neilo
Yes Jason, I do not want to get rid of all colour change when hovering over top level elements. I want the top level colour change to be removed when the mouse moves down the drop down menu.
For instance, go to:
index1.html
I want it that went I select on this site "Baba's Life" and go down to the links below, I would like the "Baba's Life" button to change back to its original colour.
I hope this makes it clear.
Regards
Peter
That effect is not supported by CSS Menu writer, it would require custom javacript5 coding to accomplish this.
Because CSS Menu Writer uses the :hover psuedo class, and nested lists, when you hover over a child element, you are technicly still hovering over the parent element as well. thake for example this code:
<li class="parent"><span><a href="http://www.meherbaba.co.uk/photos.html">Baba Gallery</a></span>
<ul class="level-1">
<li><span><a href="http://www.meherbaba.co.uk/babaart.html">Baba Art</a></span></li>
<li><span><a href="http://www.meherbaba.co.uk/babafilm.html">Baba on Film</a></span></li>
</ul>
</li>
the child list item:
<li><span><a href="http://www.meherbaba.co.uk/babaart.html">Baba Art</a></span></li>
is contained in the parent list item:
<li class="parent"><span><a href="http://www.meherbaba.co.uk/photos.html">Baba Gallery</a></span>
so when you hover over the child list item, you are still hovering over the parent.
You would need to use javascript on the mouseOver event of the child list items to reset the color properties of the main menu level. We cannot support this in menu writer.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.