I have added a table into my page, but it automatically adds a background color to one side and a border around that cell, as well as at the bottom - is there code to get rid of it? I just need a transparent background and no border.
To remove the background and borders from your table:
Edit your theme’s CSS:
Go to Online Store > Themes > Edit code and open themes.css.liquid or styles.css.liquid.
Add this CSS:
/* Remove background and borders from the table */
.page-content table {
background-color: transparent !important;
border: none !important;
}
/* Remove cell borders and background for each cell */
.page-content table td, .page-content table th {
background-color: transparent !important;
border: none !important;
}
save and refresh.
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.
Thanks! Just to clarify - will that change all tables throughout the site, since I am amending the theme? I only need to change the table on this page…
That worked for removing the border on the table, but it didn’t remove the purple background in the table; it removed the background on the page itself instead…