I'm programming in PHP, HTML and Javascript to create an online store, integrated in the Opencart platform. Everything is already working properly, minus a small detail with CSS. I put the hover
effect on the image of the different products simply using image a:hover
. However, although it works in all browsers, on some pages of the site in Chrome, the effect does not run!
.box-product .image {
/**display: inline-block;
margin-bottom: 15px;
margin-left: 20px;
display: block;
max-width: 100%;
height: auto;**/
margin-bottom: 22px;
padding-bottom: 15px;
display: block;
text-align: center;
background: white;
/**box-shadow: 0px 0px 3px #AAA inset**/
border: 0px solid white;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.box-product .image img {
padding: 3px;
border: 0px solid #E7E7E7;
display: block;
max-width: 100%;
height: auto;
margin:auto;
}
.box-product .image a:hover {
opacity:0.5; filter:alpha(opacity=50);
}