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 use style="display: block; margin-left: auto; margin-right: auto;" center image. or div(img(...), style="text-align: center;").


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -