r - How to center an image in a shiny app? -
i playing app:
http://shiny.rstudio.com/gallery/plot-plus-three-columns.html
i inserting picture on top row inserting beneath 'title'
list(img(src="nfl_header.jpg", width = 400, align = "center")),
but left justified, align
doesn't seem anything. how specify center justification image?
from yihui himself:
the align attribute of
<img />
not need. different thing (http://www.w3schools.com/tags/att_img_align.asp). can usestyle="display: block; margin-left: auto; margin-right: auto;"
center image. ordiv(img(...), style="text-align: center;")
.
Comments
Post a Comment