gt icon indicating copy to clipboard operation
gt copied to clipboard

Create a `.gt_table_center` CSS class and use it as a default option

Open rich-iannone opened this issue 7 years ago • 1 comments

To allow setting a table to be centered in the content area, we could create a .gt_table_center CSS class and set that by default (perhaps with other options to left/right-align the table). It would contain these CSS rules:

margin-left: auto;
margin-right: auto;

rich-iannone avatar Nov 02 '18 21:11 rich-iannone

Was about to open a new issue, but found this. Currently the only way I've found to left/right align HTML tables is to include this as a separate CSS file:

.gt_table {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

It works, but it'd be nice to have something in tab_options() that could allow for non-CSS overrides.

andrewheiss avatar Jan 18 '19 01:01 andrewheiss