Search code examples
eclipse-rap

How to set CSS style for certain table cells? (Eclipse RAP Platform)


If I create CSS class Table-Cell, it is used for all table cells.

Table-Cell {
    padding: 5px;
}

How can I set the padding to 5px for cells in first table column and 10px for cells in the second table column? How can I do that without RowTemplate?


Solution

  • Unfortunately, this is not yet possible in RAP. You could try to enable markup and include some whitespace character like U+2003 to add some padding.

    The pseudo class :nth-child is not supported, only those that are defined in the theming reference.