Copy link to clipboard
Copied
I am using a Table to create a calendar. Each cell has a number for the date. Some of the cells are shaded to indicate an event is occuring. Some days have 2 events so I would like to have the shading/background have 2 colors (split in half diagonlly) but also still include the date. I'm hoping someone has a trick for this that can happen in the cell. If I turn the cell to a graphic cell, the number disappears. The only other thought I have to put the background as a graphic behind the table... not ideal.
Thank you
Another option is to use the Diagonal Lines table cell option. First, set up a new stroke style that is half black, half gap.
Then create your diagonal line in the cell using the half and half line style you have created - with a wide enought stroke to fill the cell. One of your colors will be the stroke color, and the other, the gap color.
Copy link to clipboard
Copied
Hi fabulousdesigner,
there is a trick to do that.
You need a square that is anchored Above Line in the text cell filled with a gradient that has 4 color stops at 0% 50% for the one color of the diagonal and stops 50%, 100% for the second color where the gradient in the square is rotated by -45°. From my German InDesign where the anchored square is selected. Cell insets are 0. No cell strokes:
Download my sample InDesign 2021 document from my Dropbox:
https://www.dropbox.com/s/oas2pwzk0hufh0f/DiagonalFilledCell-2021.indd?dl=1
Regards,
Uwe Laubender
( ACP )
Copy link to clipboard
Copied
Another option is to use the Diagonal Lines table cell option. First, set up a new stroke style that is half black, half gap.
Then create your diagonal line in the cell using the half and half line style you have created - with a wide enought stroke to fill the cell. One of your colors will be the stroke color, and the other, the gap color.
Copy link to clipboard
Copied
Perfect and so easy! Thank you. Laubender's solution could work with a some finagling but couldn't work with the way I had my text designed.
Copy link to clipboard
Copied
This worked a charm as far as the fill.....however I still need to have the stroke around the edge of the cell, which this method seems to remove as it's a stroke. Is there a way to retrain the outer stroke and make the fill diagonal?
Copy link to clipboard
Copied
Hi fabulousdesigner,
SJRiegel's solution is the easier option. So stick with this.
Regards,
Uwe Laubender
( ACP )
Copy link to clipboard
Copied
Thank you for your reply. You're right, the stroke style option abover worked like a charm.
Copy link to clipboard
Copied
And it's way more flexible when it comes to changing the dimensions of the cells.
Regards,
Uwe Laubender
( ACP )
Find more inspiration, events, and resources on the new Adobe Community
Explore Now