I have a couple of Github profile "cards" created from here which I am embedding as Markdown in a RMarkdown page on a pkgdown website.
How would i go about adding a border to these? Anything i have found searching has been about using CSS or html to add borders to images rather than embeds like this.
Or alternatively change the background colour of them - they are white on a white page.
Thanks
You can mix markdown and html code and even use
csscode chunks in your RMarkdown document to change the styling. In the document below, I put the metrics card in a div withclass=borderedand then changed theborder-styleattribute for theborderedclass:Here's the result:
side-by-side
To put two side-by-side: you could use a flexbox strategy:
Here's the result: