Site logo

Archived topic

Urgent Request: Align Variation label to left

4 replies · Started by Kevin on May 25, 2022

Viewing posts 1–5 of 5

Hi.
Thank you as always.

Urgent Request: Align Variation label to left, selection to next line & full width

Kinda exactly like grind selection below.

Thank you.

I added following which is supposed to work (works in inspection) but does not work when I add it to css

.woocommerce div.product form.cart .variations td {
padding: 0px;
line-height: 1em;
text-align: left;
display: block;
}

Hi Kevin,

Here is a CSS you may try adding in Appearance > Customize > Additional CSS:

.single-product table.variations tr {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.single-product table.variations tr .label {
    padding: 0;
}

.single-product table.variations td.value {
    width: 100%;
    display: flex;
    padding-top: 0;
}

.single-product table.variations td.value select#size {
    flex-grow: 2;
    margin-right: 6px;
}

Hope this helps!

Oh wow...that worked perfectly.
Amazing.
Thank you.

You’re welcome Kevin!

This archived topic is closed to new replies.