hi! i was wondering if anyone knew how to do these two things
-
center ‘matte’ and ‘clear’ text on the buttons
-
limit 7 variations per row (first row ends at rose)
i’ve looked at previous posts, but can’t find a code that works.
thank you so much!
hi! i was wondering if anyone knew how to do these two things
center ‘matte’ and ‘clear’ text on the buttons
limit 7 variations per row (first row ends at rose)
i’ve looked at previous posts, but can’t find a code that works.
thank you so much!
Center ‘matte’ and ‘clear’ text on the buttons: Find the CSS selector for the buttons that contain the ‘matte’ and ‘clear’ text. It could be a class or an ID assigned to those buttons. Once you have the selector, apply the following CSS properties to center the text:
.your-button-selector {
text-align: center;
}
Replace .your-button-selector with the actual selector for your buttons.
Limit 7 variations per row: To limit the variations to 7 per row, you can use CSS flexbox or grid layout. Here’s an example using flexbox:
.product-variants-container {
display: flex;
flex-wrap: wrap;
}
.product-variant-item {
width: calc(100% / 7); /* Adjust the number to change the number of variations per row */
}