Maybe this is just a stupid browser related issue, but ...
I generate some colored tables in a HTML file via Rmarkdown
using the tableHTML
package (colors are generated by the RColorBrewer
package):
```{r Init, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
require(magrittr, quietly = TRUE)
require(tableHTML)
test <- data.frame(A=123, B=456, C=789)
```
...
```{r Test, echo=FALSE, results="asis"}
tableHTML(test) %>%
add_css_thead(css = list('background-color', '#4DAF4A')) %>%
add_css_table(css = list('border', '#4DAF4A'))
```
The colors of the borders look fine in the `Rstudio' viewer:
But the borders are colored different, when opening in Safari or Firefox:
What is the problem with table border colors?