I’m in the process of migrating blog content into Hugo and am having trouble centering images in posts with inline HTML. I tried the following and I’m still getting an image that is aligned left. Any suggestions as to what might be the issue?
In terms of what I’m trying to do, it’s quite simple: load and display a centered image in a blog post. If there’s a Hugo specific way to achieve that without using inline HTML, I’m all ears.
It turns out the following inline HTML will load and center an image but it is centered with respect to the web browser display as opposed to the text span for the post. And the latter is what I want to produce.