3 ms·
Your "what textter's are saying" has an issue. The `hover` pseudo-selector doesn't apply when on a child element. As a result, that section turns green when hov
by sisk 12y ago
Your "what textter's are saying" has an issue.
The `hover` pseudo-selector doesn't apply when on a child element. As a result, that section turns green when hovering over the containing div but not when hovering over the section title, for example.
You'll need JS to accomplish what you're trying to accomplish there. You've already got jQuery on the page so you may as well use the `.hover` method to toggle a `hover` class on the div and replace the pseudo-selector in your CSS with that class.
Something like,
$('#u3397').hover(function () {
$(this).addClass('hover');
}, function () {
$(this).removeClass('hover');
});
Also, minor point but I believe that shouldn't have an apostrophe. That said, grammar has never been my strong-suit so might want to double-check on that.
- jfaat 12y agoYou're right on the grammar. Thanks for the input, and for reading through the whole page! Thanks for the .hover tip as well ;)