Insert logo in HTML document header


I wanted to add a logo to my HTML document header, but it covers now the title.
My code is:
htmltools::img(src = knitr::image_uri("C:/Users/user/Desktop/unnamed.jpg"),
alt = 'logo',
style = 'position:absolute; top:0; right:0; padding:10px; width: 255px; height: 160px')

Where did you include this code in your Rmarkdown ?

If you want to place in header, you maybe use the in_header argument in the format

Hope it helps

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.