Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1214612

    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

    #1214799

    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

    #1214817

    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

    #1214822

    Hi,

    Yes, you need to set a minimum value to ensure they are all sized evenly.

    Best regards,
    Jordan Shannon

    #1214823

    Ok, and how about the padding of the text?

    Best regards,
    Nin0

    #1215216

    Hi,

    Please try this as well to center the text:

    #av_product_description h1 {
      text-align: center; 
    }

    Best regards,
    Rikard

    #1215217

    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

    #1215643

    Hi,

    Yes, you can use that CSS block to add padding as well.

    Best regards,
    Rikard

    #1215684

    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

    #1215741

    Hi Nin0,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.