Can't override hover with my CSS
GarfieldKlon
Registered Users Posts: 19 Big grins
Hi
I'm trying to override the hover background of my menu with this:
div yui3-menu ul.yui3-menu-children li.yui3-menu-item:hover {background-color: red !important}
What I'm doing wrong?
edit:
Ok, found out that I have to copy the whole css path to override it:
.sm-user-ui.yui3-menu-vertical a.yui3-menu-label:hover, .sm-user-ui .yui3-menu-vertical a.yui3-menu-label:hover, .sm-user-ui.yui3-menu-horizontal > .yui3-menu-children > .yui3-menu-item .yui3-menu-item a.yui3-menu-label:hover, .sm-user-ui .yui3-menu-horizontal > .yui3-menu-children > .yui3-menu-item .yui3-menu-item a.yui3-menu-label:hover
I'm trying to override the hover background of my menu with this:
div yui3-menu ul.yui3-menu-children li.yui3-menu-item:hover {background-color: red !important}
What I'm doing wrong?
edit:
Ok, found out that I have to copy the whole css path to override it:
.sm-user-ui.yui3-menu-vertical a.yui3-menu-label:hover, .sm-user-ui .yui3-menu-vertical a.yui3-menu-label:hover, .sm-user-ui.yui3-menu-horizontal > .yui3-menu-children > .yui3-menu-item .yui3-menu-item a.yui3-menu-label:hover, .sm-user-ui .yui3-menu-horizontal > .yui3-menu-children > .yui3-menu-item .yui3-menu-item a.yui3-menu-label:hover
0
Comments
My Website index | My Blog
.sm-user-ui.yui3-menu-vertical .yui3-menu-children,
.sm-user-ui .yui3-menu-vertical .yui3-menu-children {
background-color: rgba(0, 0, 0, 0.6);
}
My Website index | My Blog
only the lower menu has drops. Birds drop is the most extensive.
My Website index | My Blog
It's little bit expensive to find the right element, then switch back to the theme settings and edit the CSS. Would be nice if the CSS changes could be seen on the fly somehow.
If you use one of the Browser WebTools, you can do that. I use Firefox and I use the 'Firebug' webtool. You still have yo add it to your CSS, but this allows you to check the code "on the fly".
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Anyway, my changes also effects the admin menu. I can live with that, but it's not really nice.
delete CSS from each tab watching page for effects. This way I can march thru the CSS finding what rules
affect the element I'm focused on. When I find the tab containing the "affecting CSS" I then bunch delete looking
for the exact rule.
Then in the last tab I add my experimental CSS to modify the element.
My Website index | My Blog