ヘルプセンター記事への表の追加と書式設定



image avatar

Aimee Spanier

Zendesk Documentation Team

編集日時:2025年5月01日


0

0

45件のコメント

Can this article please be updated? I do not have the “Advanced” tab to adjust border color of tables or border line size to make my borders stand out more on tables within Guide. If someone can point me to an article that outlines how to change the border color or the border line size, I'd appreciate it. 

0


Hi Colleen,


Yes you can. But for that you need to change the code a bit and where ever you want to add the border you need to add the class in the article source code.


You can use below snippet for the same:


.article-body .add-border table, .article-body td, .article-body th {
 border: solid 1px #000;
}

Now, for the articles where you want to add the border, you need to add an add-border class at the top of the source code.


Let me know if this works for you.


Thanks

Trapta

0


1263169208350  thanks that worked! 

 

Is there a way to apply it to individual guides versus the template as a whole? We don't always need the full borders. 

 

Further is it there any way to choose where you apply borders? (like in Excel or Word how you can have them on only the right or top of a specific cell)

 

Thanks!

0


6811483528602 try adding below code at the bottom of style.css file.

 

.article-body table, .article-body td, .article-body th {
 border: solid 1px #000;
}

 

Let me know how it goes for you.

 

Thanks

Trapta

1


1263169208350 is there specific coding we need to use to have cell borders on all 4 sides? I added both a table border colour and cell border colour and while I can see it in edit mode, when I preview/publish the border is only on the top and bottom of the cells.

0


Hello Freyja,

I have found this article that can help: Why don’t table settings in the editor match the published article?

As mentioned there, by default, the Guide theme CSS overrides the cell padding you have set up through the table properties editor. The article also provides a code snippet that you can insert into your theme to have your cell padding reflected appropriately.

0


Hello, I have a question regarding formatting tables. Every time I create a table (new table or copy and paste from another doc) the format change completely when I publish the article. I understand that is normal for the way the editor has been conceived and I understand there is a way to add a defining code on the css theme (not supported by Zendesk). But my question is: how can I avoid this? I have recently created a table on a doc and it's impossible to keep the same format between cells even I used the same parameters. How can I create a table that is "stable"? Thanks

0


Hi,
 
As mentioned in the article above.
 

If you need greater control over your table appearance, you need to change your help center security permissions to allow unsafe HTML. See Allowing unsafe HTML in help center articles for more information. If you decide to make this security change, the table properties window displays the following options:

The Advanced tab allows you to update the style, border color, and background color.

0


Hello, the advanced option for cell properties is missing, any idea how to have it back? 

0


Thanks for looking into it Dane Adriano. I'll contact through Messaging.

0


サインインしてコメントを残してください。