I'm having an issue with a Commerce Sub-Category t...
# suitecommerce
w
I'm having an issue with a Commerce Sub-Category thumbnail - I can't figure out what size to make it. When I use the same size as the rest of the thumbnails, it doesn't fit the div. We're on SC Standard (latest) using Threads theme (latest), and this Sub-Category is the fifth one on this category, which makes it take up the entire width: https://www.jobrien.com/visitor-management/shop-by-brand-visitor-management
s
The issue is with the CSS property
background-size
. For the thumbnails to fit perfectly within it, it should be set to
contain
.
The intended use of those images is to be a background to some text that appears in front of it, rather than as you're using it
But that's OK. You're using an unmanaged theme, so you just need to locate
.facets-category-cell-image-container
and change its
background-size
to
contain
It looks like you'll also need to set
background-color
to match your main background (ie white)
w
HAH! Cool thanks!
This is when an unmanaged theme pays off 😉
s
Well you could always dump the CSS into an extension or in the SMTs... that's the benefit of CASCADING style sheets 😉
w
Oh true, I do that too.
I'm not familiar with CSS contain. What do I need to set it to?
s
background-size: contain
w
Oh! LOL
Thanks Steve! That looks great now!
netsuite halo 1
🤩 1