This isn't a theme per se issue, but CSS so this seemed the best suited forum.
For some reason, I cannot get the opacity to change with a mouse over. For example, I want to take some social media icons, set the opacity to 0.8 then have it go to 1.0 on a mouse over. This was my original code and syntax…
CSS
.surfimage {
display: block;
margin-bottom: -10px;
opacity: 0.8;
}
.surfimage a:hover {
display: block;
margin-bottom: -10px;
opacity: 1.0;
}
Wikidot Markup
[[image http://hbcult.wdfiles.com/local--files/social2/fb.png width="55px" link="http://www.facebook.com/pages/HB-Cult/176391372377987" class="surfimage"]]
But that didn't work. I also tried it without the display:block… that was a nogo. Then I looked at my theme css because in it, I have the site logo go from a 0.8 opacity to 1.0 PLUS a webkit transform of about 8 in rotation with no apparent issues. I noticed that in this case the image that gets transformed is the background image so then I tried creating the same css that worked in the theme header but for my social icons….
new test CSS
.surftest {
display: block;
margin: 0; padding:0;
background-image: url(http://hbcult.wdfiles.com/local--files/social2/fb.png);
width: 61px;
height: 215px;
opacity: 0.8;
}
.surftest a:hover{
display: block;
margin: 0; padding:0;
background-image: url(http://hbcult.wdfiles.com/local--files/social2/fb.png);
width: 61px;
height: 215px;
opacity: 1.0;
-webkit-transform: rotate(-5deg);
}
Wikidot Markup for new test
[[div class="surftest"]]
[[/div]]
The image appeared but once again there was no hover effect. After that I tried changing the way I apply the class to the image with:
[[div class="surfimage"]]
[[image http://hbcult.wdfiles.com/local--files/social2/fb.png width="55px" link="http://www.facebook.com/pages/HB-Cult/176391372377987"]]
[[/div]]
That also did not work. I don't know what else to try.
Any help would be appreciate. My test page is here: http://hbcult.com/social2 and this is for the site http://hbcult.com/






