Hi,
You got it right. You need to enlarge badge width through CSS file.
Open this CSS file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/assets/css/flexibleVM2Global.css
Find these lines and increase the "width" size:
.FlexibleNew {
background: url(../images/Flexible/FlexibleBadge.png) no-repeat 0px -62px;
height:27px;
width:56px; <-- Increase this value for NEW badge
display:block;
}
.FlexibleSpecial {
background: url(../images/Flexible/FlexibleBadge.png) no-repeat top left;
height:27px;
width:97px; <-- Increase this value for FEATURED badge
display:block;
}
.FlexibleDiscount {
background: url(../images/Flexible/FlexibleBadge.png) 0px -32px;
height:27px;
width:78px; <-- Increase this value for SALE badge
display:block;
}
.FlexibleSoldOutBadge {
background: url(../images/Flexible/FlexibleBadge.png) 0px -92px;
height:27px;
width:97px; <-- Increase this value for SOLD OUT badge
display:block;
}
You may make all the width size the same. Something like width:150px; so it will be large enough for all badges. But it is ideally better to set a width value for each badge individually (like we did)
Regards.