Columns, column headers and summary fields can have separate formatting. You can style them with dbr.resultclass
, dbr.colstyle
or with dbr.colclass
.
If you want to center columns, headers and footers for all columns, the easiest is to use dbr.resultclass
:
select 'dbr.css', '. center_aligned td, . center_aligned th, . center_aligned div {text-align:center}';
select 'dbr.resultclass', 'center_aligned';
To center-align a single column you can use:
select 'dbr.colstyle', 'columnRef', '[text-align:center]';
select 'dbr.footer.colstyle', 'columnRef', '[text-align:center]';
select 'dbr.header.colstyle', 'columnRef', 'text-align:center';
or
select 'dbr.css', '. center_aligned, . center_aligned div { text-align:center}';
select 'dbr.footer.colclass', 'columnRef', 'center_aligned';
select 'dbr.colclass', 'columnRef', 'center_aligned';
select 'dbr.header.colclass', 'columnRef', 'center_aligned';
--
myDBR Team