Styling Category Shortcode Grid – Scale / Overflow Hidden
-
Hey Woo
I am using shortcode for product categories. I have added a bit of css to scale the image icon on mouse-over. It appears overflow: hidden, will not work for me, so how can I crop the image to contain it within it’s space.
Css (neither of the overflow kicks in):
/*** product_categories - Grid Image Styling ***/
.woocommerce ul.products li.product a img {
border-radius: 25px;
-webkit-transform: scale(1);
transform: scale(1);
-webkit-transition: .2s ease-in-out;
transition: .2s ease-in-out;
}
.woocommerce ul.products li.product a img:hover {
-webkit-transform: scale(1.1);
transform: scale(1.1);
overflow: hidden !important;
}
/**** Category Image Container in Grid ****/
ul.awf-product-categories li.product-category,
ul.awf-product-categories li.product-category.last,
ul.awf-product-categories.columns-3 li.product-category,
ul.awf-product-categories.columns-4 li.product-category,
ul.awf-product-categories.columns-5 li.product-category,
ul.awf-product-categories.columns-6 li.product-category {
position: relative;
margin: -3px 1px;
width: 24,5%;
overflow: hidden !important;
}How can I fix this?
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.