Pkgdown: Wide knitr::kable

Created on 9 Dec 2016  路  6Comments  路  Source: r-lib/pkgdown

Awesome package, thanks! In the website for https://github.com/ropensci/riem, http://ropensci.github.io/riem/index.html in the README I use knitr::kable() and it is wider than the rest of the README text.

table

Not sure if this is a suggestion for improving pkgdown or if this mean I should use something else to show the table in the README. :-)

feature home

Most helpful comment

Works for me too; re-opening since it seems useful to enable in general (and maybe for images too?)

All 6 comments

Yeah, I'm not sure what I could do here?

Do you have any ideas @yihui?

You may add the following CSS rules:

table {
    display: block;
    overflow: auto;
}

@yihui thanks, e.g. http://ropensci.github.io/ropenaq/ looks much better now 馃樅 but scrolling isn't possible.

I'm able to scroll:

image

Works for me too; re-opening since it seems useful to enable in general (and maybe for images too?)

So weird I couldn't scroll but well now I can, thank you :-) and awesome if it gets enabled in general!

Was this page helpful?
0 / 5 - 0 ratings