Format a table
Format the header, a column, a row or a single cell. Tables in the DocStudio designer user guide.
Formatting can target the whole table, the header, one column, a row or a single cell. The most specific setting wins.
Where to format
| Target | Where | Settings |
|---|---|---|
| Header row | Header row section | Bold, italic, text color, background, font size, alignment and more |
| One column header | More options on the column, then its header row group | The same settings for one header cell |
| A whole column | More options on the column, then style properties | Applies to header and body cells of the column |
| A row | Format row on a fixed row | Background, bold, color and more for the whole row |
| One cell | Format under a cell | Bold, italic, color, background, size, alignment and span |
| Footer rows | Footer row cells | Alignment and, for fixed rows, the same formatting |
Quick settings
Every formatting panel shows the same quick settings: Bold, Italic, Text color, Background, Font size and Alignment. Colors are written as #rrggbb. Open All style properties for the rest, such as padding and borders. Clear formatting removes all formatting of that target.
Examples
- Make a header dark: in Header row set Background to
#1d2939and Text color to#ffffff, and check Bold. - Highlight a total: open Format row on the last row and set Background to
#f2f4f7. - Right align a price column: set Alignment of the column to
end.
Order of settings
For a body cell: table style, column style, row style, then the cell style. For a header cell: column style, header row style, then the column header style.
Print and PDF
Cell and row formatting render the same in the preview, print and PDF. Backgrounds print in the PDF. Browser printing may drop backgrounds unless the user enables background graphics.
Related: Table templates and size, Fixed rows and cells.