Copy link to clipboard
Copied
is it possible to change the colour of the header row with just one click, for a table if a document has multiple tables.
Similarly to how text colour can be changed through pressing a paragraph style
1 Correct answer
Hi James:
Here's a demo of how it will work when you get the process straightened out. I'm showing you the first two components individually, and then how the nesting works when I click on the table style.
And two good points were made while I was making the demo: be sure you clear all overrides from the table (see: https://www.rockymountaintraining.com/adobe-indesign-tables-that-wont-accept-table-and-cell-styles/) and be sure the top row is designated a header row.
~Barb
EDIT: Thank
...Copy link to clipboard
Copied
Yes, if you already have TableStyle defined and applied.
If not - it can be asily scripted - but, do all your Tables should have exactly the same TableStyle applied?
Copy link to clipboard
Copied
How do you apply a table style?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
nothing happens when I press Window > Styles, and choose Table Styles or Cell Styles
Copy link to clipboard
Copied
Do you have any Table and Cell Styles defined?
Copy link to clipboard
Copied
No
Copy link to clipboard
Copied
Then please read the link I've provided - everything is explained there - how to create and apply Table and Cell Styles.
Copy link to clipboard
Copied
Tables in InDesign are admittedly awkward in certain situations, but one of the strongest features is the ability to nest styles within styles.
When I am setting up tables, the first thing I do is define the paragraph styles for the text in the header and the body rows.
The second thing I do is create cell styles to control the look of the header rows—including the background color—and the body rows. I can then nest the paragraph style definitions in the cell styles, so that assigning a cell will simultaneously assign the paragraph style I created in the previous step.
Finally, I create a table style to control the look of the entire table and as part of the table style definition, I can nest the cell styles so that they are automatically assigned to the header rows and the body rows.
Not only does this offer one click formatting for a simple table, but it allows us to redefine the background color of the cell style being used by the header rows, which will then change every table that that's using that cell style.
Styles are one of the most important features InDesign when you're looking to streamline your workflow. If you're new to styles, I would take some time to get up to speed on each of these three different style categories and then pull them all together.
If you have questions, of course come back and ask us.
~Barb
Copy link to clipboard
Copied
Nothing happens to the header when I select the table style? I'm expecting it to change to blue rather than it being grey
Copy link to clipboard
Copied
There might be "local style overrides" - local formatting - so after you select whole Table, you need to clear Cell Overrides, then Table Overrides, THEN apply your Table Style again.
Or do it the other way around - after applying Table Style - clear overrides.
Copy link to clipboard
Copied
Don't know how to clear overrides
Copy link to clipboard
Copied
I added a link in my last answer that shows how I clear overrides.
~Barb
Copy link to clipboard
Copied
Make sure you top row is defined as a header row, not just a body row made to look like a header.
Select the top row and right-click. See if Convert to Header is available, if you don't see it there, check the Table > Convert Rows menu.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Check the Table > Convert Rows menu.
Copy link to clipboard
Copied
This doesn't make sense
Copy link to clipboard
Copied
As a visual learner, I prefer demos.
It's just a toggle.
Copy link to clipboard
Copied
Select the top row. Either right click or check the Table menu (then under Convert Rows).
Copy link to clipboard
Copied
Hi James:
Can you show us the table style definition? Right click blue table > Edit "blue table". Stay in the General category and grab a screen shot.
~Barb
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi James:
Here's a demo of how it will work when you get the process straightened out. I'm showing you the first two components individually, and then how the nesting works when I click on the table style.
And two good points were made while I was making the demo: be sure you clear all overrides from the table (see: https://www.rockymountaintraining.com/adobe-indesign-tables-that-wont-accept-table-and-cell-styles/) and be sure the top row is designated a header row.
~Barb
EDIT: Thank you for sharing the screenshot. You do have the cell style nested correctly, so it's one of the two things that were already pointed out. Overrides or the top row was not designated as a heading row, or both. Almost there! 😊

