Hello support team,
I would like to ask if it’s possible to style the product category overview? I know that the size of the image is important, but I would like the box to have the same height.
Please take a look at the examples. Also, is it possible to have the name of the category centered in the middle and apply some padding?
Thanks,
Best regards,
Nin0
Hey Nin0,
Add this to quick css:
#top .products .product-category {
max-height: 400px!important;
height: 300px!important;
text-align: center!important;
min-height: 300px!important;
}
Best regards,
Jordan Shannon
Hi Jordan,
Tnx for the quick reply. I used the css code you provided, but this only centers the name of the category without the padding.
The size of category boxes are the same. I could change the min-height to a higher value, but then all the product boxes have that fixed value.
Even the small ones.
Best regards,
Nin0
Hi,
Yes, you need to set a minimum value to ensure they are all sized evenly.
Best regards,
Jordan Shannon
Ok, and how about the padding of the text?
Best regards,
Nin0
Hi,
Please try this as well to center the text:
#av_product_description h1 {
text-align: center;
}
Best regards,
Rikard
Hi Rikard,
Centering the text is ok; like mentioned before. It’s the padding that i would like to adjust.
Can i use the “#av_product_description h1” for this to?
Tnx,
Best regards,
Nin0
Thanks Rikard,
I’ve noticed that this css block is for the main title displayed on top of the page and not under the image as I mentioned.
I could fix this with the css code
#top .products .product-category h2 { ... }
Best regards,
Nin0
Hi Nin0,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria