Home › Forums › Support › Chnage margin-top when product is on sale This topic has 3 replies, 2 voices, and was last updated 3 years, 4 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts December 11, 2020 at 5:13 am #1575887 nik9 Hello, Is there a way to adjust the… .woocommerce ul.products li.product a.button { margin-top: -10px; } to this below but only when a product is on sale? .woocommerce ul.products li.product a.button { margin-top: -15px; } Cheers December 11, 2020 at 6:24 am #1575999 DavidStaff Customer Support Hi there, sale products are given a class of sale so you can do this: .woocommerce ul.products li.product.sale a.button { margin-top: -15px; } December 11, 2020 at 6:41 am #1576033 nik9 Oh, that was simple. I didn’t saw that! Thanks David! 🙂 December 11, 2020 at 6:50 am #1576147 DavidStaff Customer Support You’re welcome! Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In