Looking for help with my CSS code situation involving opacity on images:
CSS for Opacity:
.hover:hover { opacity:0.8;}
HTML for Opacity:
<a href="http://www.byggprojektoren.se">
<img class="hover" src="http://byggprojektoren.se/wp-content/uploads/2014/09/HomepagePic.jpg"/>
</a>
However, there seems to be a conflict with the following code:
Another CSS:
.medarbetare-img {
width: 180px;
height: 100px;
margin-bottom: 5px;
margin-top: 16px;
HTML for Background:
<div class="medarbetare-img" style="background:url(http://byggprojektoren.se/wp-content/uploads/2014/09/R2.jpg) center top no-repeat;">
</div>
Removing the second CSS allows the opacity CSS to work, but not both simultaneously. Any ideas on how to adjust the CSS for both to function properly?