Skip to Content

Formatting of Crosstables in Design Studio

Hi All

I have a new requirement whereby certain columns should be certain colours (Background colour) to highlight groupings. The Header and the cells need to have same background colour.

Below is how it is currently formatted in Excel.

Any ideas on this one? I did find some posts about setting colours via CSS but it didn't work too well for me. As far as I'm aware there is not a custom component that can do this either?

Thanks All

Capture.PNG (11.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 29, 2015 at 12:22 PM

    Hi Alex,

    You can try the following css:

    table.sapzencrosstab-DataArea tr td:nth-child(10n+3) {background: #A52A2A !important;}

    table.sapzencrosstab-DataArea tr td:nth-child(10n+5) {background: #A52A2A !important;}

    table.sapzencrosstab-ColumnHeaderArea tr td:nth-child(10n+3) {background: #A52A2A !important;}

    table.sapzencrosstab-ColumnHeaderArea tr td:nth-child(10n+5) {background: #A52A2A !important;}


    Best,

    Alfred


    Untitled.png (19.6 kB)
    Add comment
    10|10000 characters needed characters exceeded