Before you ask please READ THIS

WooCommerce Variations label misaligned

xrdxrd
in Fame Posts: 3
Hi!

I noticed that every second Variation Label in WooCommerce is misaligned and I can't find a way to fix this. You can even see it in the Fame demo (http://fame.apollo13.kinsta.com/product/fuel-ex-9-9-29/), "COLOR" ist vertically centered, "SADDLE" is not. Seems to be broken across all Browsers I tested.

Can you help and tell me, how to center both labels? Tanks in advance!

Comments

  • AirAir
    Posts: 10,970
    Hello there:-)

    This is cause this "clear selection" button is in same row as whole variation. Cause of that last variation label will always be centered across select input and button.
    Easiest would be to remove this button from there, but as I remember it was not possible without complication.
    There is no easy CSS that could fix that but let me take few minutes to try to combine something fancy :-)

    With kind regards.
  • AirAir
    Posts: 10,970
    Try this custom CSS:

    .woocommerce-page #content div.product form.cart .variations td.label{
    vertical-align: top;
    }
    .woocommerce-page #content div.product form.cart .variations label{
    margin-top: 12px;
    display: block;
    }
    With kind regards.
  • xrdxrd
    Posts: 3
    Works like a charm, thanks for the fast response!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion