Skip to content

Commit

Permalink
style outside <table>
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Jan 13, 2024
1 parent 6969c91 commit cc9843e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions inst/templates/bootstrap.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@
}
// tinytable cells before this
</script>
<style>
table {
width: auto;
margin-left: auto;
margin-right: auto;
}
// tinytable css before this
</style>

</table>

<style>
table {
width: auto;
margin-left: auto;
margin-right: auto;
}
// tinytable css before this
</style>

</div>

</body>
Expand Down
2 changes: 1 addition & 1 deletion vignettes/tutorial.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ tt(dat) |>

We can use the standard `which` function from Base `R` to create indices and apply conditional stying on rows. And we can use a regular expression in `j` to apply conditional styling on columns:

```{r, eval = FALSE}
```{r}
dat <- mtcars[1:10, 1:5]
tt(dat) |>
Expand Down

0 comments on commit cc9843e

Please sign in to comment.