Bioconductor / BiocStyle

Issues and pull requests for BiocStyle should go here.
12 stars 19 forks source link

html_document2: tables are full column width without stripped rows #13

Closed rdiaz02 closed 7 years ago

rdiaz02 commented 8 years ago

I think tables from BiocStyle::html_document2 are not as nice as those from BiocStyle::html_document (though this is of course highly subjective). Those from BiocStyle::html_document, as explained in https://www.bioconductor.org/packages/devel/bioc/vignettes/BiocStyle/inst/doc/HtmlStyle.html#additional-formatting-features, have stripped rows table rows and, in addition, do not span the full column width. But with BiocStyle::html_document2 they are not stripped and even small tables (below) span the full column width. For instance:


---
output: 
  BiocStyle::html_document2

---

Fruit   | Price
------- | -----
bananas | 1.2
apples  | 1.0
oranges | 2.5

The stripping I can get by using the bioconductor.css as a custom css but I haven't been able to tweak the CSS so as to obtain centered tables that do not span the full column width.