• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do i make the inner cell border colour different to the outer

Community Beginner ,
Feb 11, 2023 Feb 11, 2023

Copy link to clipboard

Copied

Ok, this is a very picky (and seemingly insignificant) point but it's something that is bugging me and I just can't find a method that doesn't require an extra step after I create a new table.

 

I want to create a table like image A below.

Simple right?  Yeah, I thought so too.

Please pay attention to the header strokes in particular. (The rest is fine)

Michael248777270phx_1-1676120994394.png

I would like blue border around the entire table and ONLY have the inner borders between the headings white.  I have set up an overall table style with an embedded cell styles for both header and body.

The header cell style has cyan top/left/bottom strokes,

Michael248777270phx_4-1676121641933.png

and a white, right-hand stroke.

Michael248777270phx_5-1676121653359.png

The problem is, when you create a table and apply the table style, the cell style stroke overrides the overall table style border and shows a white stroke on the far right, like this...

Michael248777270phx_3-1676121505006.png

I then have to select the header row and apply the outer border again to correct the right hand stroke colour

Michael248777270phx_6-1676121939287.png

 

Additionally, if I make ALL the cell borders white, it makes the header row look smaller/scaled down when compared to the rest of the rows.  Like image C below

Michael248777270phx_7-1676125647105.png

So is there a way to change the styles so I can get image A straight off the bat?

 

TOPICS
How to

Views

198

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 11, 2023 Feb 11, 2023

I think you've run into a limitation on the way cell borders are applied in InDesign. I've also found it requires one or two extra manual steps to get the cell borders exactly the way I like.

Votes

Translate

Translate
Community Expert ,
Feb 11, 2023 Feb 11, 2023

Copy link to clipboard

Copied

I think you've run into a limitation on the way cell borders are applied in InDesign. I've also found it requires one or two extra manual steps to get the cell borders exactly the way I like.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 11, 2023 Feb 11, 2023

Copy link to clipboard

Copied

Dammit, ah ok thank you.  At least I know I haven't missed something silly 🙂
All they need to add is an option to choose which style takes precidence when there is a conflict like this. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 11, 2023 Feb 11, 2023

Copy link to clipboard

Copied

A second thought: It probably could be scripted if you had that ability (I don't). Scripts can be set up to be applied with a shortcut.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 11, 2023 Feb 11, 2023

Copy link to clipboard

Copied

I have zero knowledge on sripting and this won't come up often enough to warrant learning it, so I'll just stick to applying the border again afterwards.  No biggie 🙂

Thanks again.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 11, 2023 Feb 11, 2023

Copy link to clipboard

Copied

Hi @Michael248777270phx , It is scriptable. This would change the right cell border of the top right cell to match its top border:

 

fixTable(app.activeDocument.selection[0])

function fixTable(s){
    while (s.constructor.name != "Application") {
        s = s.parent;
        if (s.constructor.name == "Table") {
            s.columns[-1].cells[0].rightEdgeStrokeColor = s.columns[-1].cells[0].topEdgeStrokeColor
        }
    }
}

 

Before and after:

Screen Shot 16.pngScreen Shot 17.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 12, 2023 Feb 12, 2023

Copy link to clipboard

Copied

Thanks very much for that script.  I have zero experience with scripts but I assume running this script would also be an extra step to perform, after creating a table with the table style, much like adjusting the border afterwards was?
If so, I am not sure this is what I am really after sorry.  I really appreciate the effort you went to though 👍

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 12, 2023 Feb 12, 2023

Copy link to clipboard

Copied

LATEST

You could Assign the script a key command. It would also be easy to combine the application of the style and fix in one script, but that would be tied to a single style name.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 11, 2023 Feb 11, 2023

Copy link to clipboard

Copied

I would like blue border around the entire table and ONLY have the inner borders between the headings white.

 

An effect and technique easy (-ish) to achieve in Word, not so easy in InDesign. ID just doesn't have the "painting" tools that Word and equivalents do. As the other answers note, you can usually get there, or close, but it all comes down to how ID stacks the table elements. AFAIK, it uses an HTML/CSS-like approach in which cells (td and th) stack on rows (tr) which stack on the table defintion. Not sure that's helpful, or even useful, but it might point to the right choices in the order of formatting a complex table.

 


╟ Word & InDesign to Kindle & EPUB: a Guide to Pro Results (Amazon) ╢

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines