Skip to main content
Inspiring
March 4, 2025
Question

Overwriting the Header Style with Left Column Style in Table Styles

  • March 4, 2025
  • 1 reply
  • 313 views

Hello! I'm trying to make a table style that makes my table look like the 2nd table in the image, but everything I've tried so far in table styles looks like the 1st table. Specifically, the issue I'm having is that the Top Left Cell of the table defined in the style uses the header style with the gray fill, but I want it to have no fill to match the rest of the left column, as well as no stroke on the left side of the cell. 

 

I've tried defining a cell style for the Header row and a separate cell style for the Left Column, but it seems the header cell style always overwrites the left column style. Even more bizzarre, one of my coworkers was able to create a table style that works like the 2nd table, but when we repeated the steps on my Mac they didn't work and gave me the 1st table. I'm just utterly confused on why this is happening. Does anyone know how I can define a table style to make the tables look like the 2nd table instead of the 1st?

1 reply

Robert at ID-Tasker
Legend
March 4, 2025

I don't think you can.

 

When you select Cell Style to be applied to the Header, Footer, Body, First, Last - it will be applied to all columns / rows meeting the criteria - you can't target just the first Cell in the Table - because it will belong to the Header (if set in table's preferences) AND First column - not one or the other.

 

Each part of the Table has its own CellStyle applied:

 

Inspiring
March 4, 2025

Thanks for the response. Is there any way to have the left columns style override the header row's style? In your example, it would be making the yellow span all the way from the top to bottom, overiding the blue in the top left cell.

Robert at ID-Tasker
Legend
March 4, 2025

Unfortunately not.

 

As per screenshot - this is how Cell Styles are applied to parts of the table.

 

If you have a lot of Tables to process - there are free, simple script solutions - or paid, more advanced.

 

 

An example of a free, simple script solution - will apply selected CellStyle - in this case "footer" - to the FIRST Cell in ALL Tables in ALL Stories: 

 

app.activeDocument.stories.everyItem().tables.everyItem().cells[0].appliedCellStyle ="footer";

 

 

https://creativepro.com/how-to-install-scripts-in-indesign/