CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
CSS Combat
[Solved] Hover Style is not applying to a .div
Dockers
Permalink to comment
#
June 2012
Hey guys.
I'm new on the forum as well as with CSS, but i hope you'll help me clear this out.
So i am experimenting with a few hover effects, and everything is well, but i can't apply a hover effect to a div.
Here is the exact snippet:
http://jsfiddle.net/jYJzf/6/
I placed that nettuts+ logo near the left corner, and all i want to do is apply (any) effect on hover for that image.
Thanks!
calebdwilliams
Permalink to comment
#
June 2012
First, you need to close the .wrap declaration with a }
Second, the color declaration is for text color. Try replacing that with background:red and that should take care of it.
Dockers
Permalink to comment
#
June 2012
Hey calebdwilliams,
thanks for your help! It worked out.
Cheers.
Add a Comment
I'm new on the forum as well as with CSS, but i hope you'll help me clear this out.
So i am experimenting with a few hover effects, and everything is well, but i can't apply a hover effect to a div.
Here is the exact snippet: http://jsfiddle.net/jYJzf/6/
I placed that nettuts+ logo near the left corner, and all i want to do is apply (any) effect on hover for that image.
Thanks!
Second, the color declaration is for text color. Try replacing that with background:red and that should take care of it.
thanks for your help! It worked out.
Cheers.