Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Hover on images in home page only (http://forum.bytesforall.com/showthread.php?t=20375)

liana-kornik May 21, 2013 12:57 PM

[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.

lmilesw May 21, 2013 01:04 PM

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.

liana-kornik May 21, 2013 01:27 PM

I tried to write:
home page .post img:hover {
background: #dddddd;
}
But this code not work.

juggledad May 21, 2013 02:45 PM

just how did you come up with that CSS selector?

liana-kornik May 22, 2013 02:09 AM

You are right! I wrote the code like this:
body.home .post img:hover {
background: #dddddd;
}

But still it does not work, why?

liana-kornik May 22, 2013 02:48 AM

I found thanks.


All times are GMT -6. The time now is 11:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.