[SOLVED] Hover on images in home page only
Hello,
How can i add hover over images (opacity change on mouse over) to images on the home page? I found the above code to a particular page: body.page-id-95 .post img:hover { background: #dddddd; } How do I change him to home page? By my examination this code does not work already. Thank you. |
Just target the home page instead of body.page-id-95. You can find that info with Firebug or looking at the source code. There are several threads that cover how to do that.
|
I tried to write:
home page .post img:hover { background: #dddddd; } But this code not work. |
just how did you come up with that CSS selector?
|
You are right! I wrote the code like this:
body.home .post img:hover { background: #dddddd; } But still it does not work, why? |
I found thanks.
|
All times are GMT -6. The time now is 11:22 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.