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.
A Shopify store owner seeks to reduce line spacing in product description tables, specifically wanting approximately half the current spacing.
Attempted Solutions:
Proposed CSS Fixes:
Three different CSS approaches were offered:
.accordion__content.prose .table-scroller td {
padding: 5px;
}
.product-info__block-item table {
--table-cell-padding-block: 0.5rem;
}
.product-info__block-item[data-block-id="description"] th,
.product-info__block-item[data-block-id="description"] td {
padding: 8px 1rem;
}
Recommended Implementation:
Multiple contributors suggest adding code via Customize > Theme settings > Custom CSS rather than directly editing theme files.
The discussion remains open with no confirmed resolution yet.
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.
Thanks so much. I added that at the end of the CSS file and nothing happened ![]()
Check this one.
.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;
}