Question
Why don’t table settings in the editor match the published article?
Answer
By default, the Guide theme CSS overrides the cell padding you have set up through the table properties editor.
You can add the following code snippet to your style.css page to have your cell padding reflected appropriately:
.article-body td, .article-body th {
padding: 20px;
}
Set the desired cell padding and click publish for the changes to take effect. For more information on formatting your tables, see the article: Adding and formatting tables in Help Center articles.
Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Post any issues you have in the comments section or try searching for a solution online.
4 comments
Mark Rickard
I have a table style in the CSS file. It renders as expected in the editor, but the table style on the published page is overridden by the user agent stylesheet.
1
Dane
As much as we wanted to help, this setup is not supported by Zendesk. Therefore, we can't provide any guidance on such configurations. I'll also follow this, just in case one of the users has a solution.
0
Elizabeth Barron
I am suddenly having the same issue as Mark Rickard above, especially in accordions.
Mark, did you ever find a solution?
0
Francis Casino
As Dane mentioned, while we are eager to assist, it's important to note that the configuration you're inquiring about is not within the supported scope of Zendesk. Consequently, we are unable to offer guidance on such configurations. I'll keep an eye on this in case one of our users happens to have a solution.
0