• Hi!

    I need to modify the woocommerce table of attributes in product sheet, in order to make the th fit to content and not to have white space between th and td, I need a result like in this example:

    Alcol: 40.7%
    Formato: 0.7l
    Temperatura di servizio: 6/8 °C

    (now is like:

    Alcol:[space][space][space]40.7%
    Formato:[space][space][space]0.7l
    Temperatura di servizio: 6/8 °C

    )

    I tried different css modifies, but nothing seems to work…

    could you help me please?

    Thank you!

    • This topic was modified 5 years, 11 months ago by Simo2606.
    • This topic was modified 5 years, 11 months ago by Simo2606.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @simo2606!

    You could try the following CSS code, to see if that helps:

    .woocommerce table.shop_attributes th {
        width: 1px;
    }

    Cheers!

    Thread Starter Simo2606

    (@simo2606)

    Hello!

    Thank you for your support! I tried the code, but it never works as expected… the th cell doesn’t fit to content.

    I also tried to add white-space: nowrap, but it’s the same.

    • This reply was modified 5 years, 11 months ago by Simo2606.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Modify table of attributes’ is closed to new replies.