javascript - Changing the color of a text in a link on hover -
i have following html , css: http://jsfiddle.net/5hx6s/
the idea have list of items links , when user scrolls on list item lights in different color , color of text inside changes white.
you can see how looks in jsfiddle above, problem whole item's background change orange text not. text changes if scroll directly above it, not enough. i'd make whole list link, not text inside of it.
i tried putting div, span, nothing inside of list , moving class see around using following css:
.side_menu_link:hover { background: #ff7200; color: #fff !important; }
but nothing works. thing succeeded far moving 'a' tags outside of 'li' tags far i'm concerned that's not right way syntax wise. suggestions?
here are
http://jsfiddle.net/iamnotsam/5hx6s/4/
you needed replace this
a:hover { text-decoration: none; color: #fff; }
with this
#left_menu ul li:hover { text-decoration: none; color: #fff; }
Comments
Post a Comment