How do I add a border to tables in the product description?
Topic summary
A user needed help adding borders to product description tables on their Shopify store.
Solution provided:
- Navigate to Shopify admin → Online Store → Themes → Actions → Edit code
- Locate the theme’s CSS file (theme.css, styles.css, or base.css) in the Assets folder
- Add the following CSS code at the bottom:
table.details-table.striped {
border: 1px solid black;
}
- Save the changes
Outcome:
The solution was successfully implemented and worked perfectly for the user’s store (artisanbrandingcompany.com). The discussion included a screenshot showing the expected result with bordered tables in the product description.
1 Like
Thank you for the information.
Try this.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “theme.css, styles.css or base.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:
- And Save.
table.details-table.striped {
border: 1px solid black;
}
-
Result:
-
I hope it help.
Add it to styles.css and it worked perfectly. Thank You!
1 Like
Welcome. Happy to help. ![]()
1 Like

