Table Line Spacing Product Descriptions

I need help decreasing the line spacing for tables on product descriptions:

https://www.coastalcoffeecollective.com/products/new-product-copy

Ideally would like half this size.

2 Likes

Thanks so much. I added that at the end of the CSS file and nothing happened :disappointed_face:

Hi @coastalcoffee

Check this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.accordion__content.prose .table-scroller td {
    padding: 5px;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

I only have “theme.css” under assets and this didn’t work when I inserted
there.

Hi @coastalcoffee ,

Please go to Customize > Theme settings > Custom CSS and add code:

.product-info__block-item table {
    --table-cell-padding-block: 0.5rem;
}

Please add this code to Custom CSS in Sales channels > Online store > Themes > Customize > Theme settings

.product-info__block-item[data-block-id="description"] th, 
.product-info__block-item[data-block-id="description"] td {
    padding: 8px 1rem;
}