Copy link to clipboard
Copied
Framemaker is the latest 2020 version with the latest update.
I had this same issue on the second row of the table but I was able to get rid of this white banding at the top and bottom of the cells by playing with the "Cell Margins" settings on the "Table Cell" section of the applied paragraph style. I think that the reason for being able to get rid of the white bands in those cells was that their font size was the same as the first row and also the same as the straddled cells in the first 2 columns.
In this case, the font size in the second column which have these white bands is 9 points whereas the rest of the row has styles with 11 points sized fonts.
I've played with the "Cell Margins" settings in the "Table Cell" section of the paragraph style but had no success. I've even have entered negative values but the white bands always do appear. I've also tried playing with the "Cell Padding" settings in the table style and again I had no success. Also playing with the table style does affect other tables so I rather don't want to solve this problem via the table style settings.
Is there a way to solve this issue or should I give up on using the paragraph box coloring method?
As Bjørn says, Custom Ruling and Shading is the most reliable way to color these cells. I can understand why you would want to use Paragraph Formats for this because they are easier to apply than Custom Ruling and Shading. But it does give me an idea for a clever script that would apply Shading to a cell based on the Paragraph Format of the paragraph in the cell.
You would have a settings file something like this:
<settings>
<style pgffmt="FirstColumnGreyTop" cellcolor="Grey"/>
</settings>
T
...Copy link to clipboard
Copied
I don't think you can make it work using paragraph styles. The last option is to put graphics above and below paragraph, but while that will work outside of tables, it does not seem to work INSIDE tables. I believe it is "Custom ruling and shading" to make it work. 🙂
Copy link to clipboard
Copied
As Bjørn says, Custom Ruling and Shading is the most reliable way to color these cells. I can understand why you would want to use Paragraph Formats for this because they are easier to apply than Custom Ruling and Shading. But it does give me an idea for a clever script that would apply Shading to a cell based on the Paragraph Format of the paragraph in the cell.
You would have a settings file something like this:
<settings>
<style pgffmt="FirstColumnGreyTop" cellcolor="Grey"/>
</settings>
The script would automatically go through each table and shade the cells based on any matching paragraph formats in the settings file. I could even add custom ruling options.
Hmmm, you gave me an idea, but now I need time to write the code :-).
Copy link to clipboard
Copied
I've just managed to solve my issue thanks to both of you. As I've expressed before, I'm a newbie and I wasn't aware of "Custom Ruling and Shading". The ability to customize tables, makes me think about overrides. I hope that such customizations won't corrupt my table styles but only affect specific cells or it will get much more complex for me to track and handle customized tables.
Copy link to clipboard
Copied
No. Custom ruling and shading will not affect your table styles.
When you update your table style with the Table Designer, the ruling and shading customization will be kept.