I wanted to layout my images in this answer centered, and I believe they are. Though I am using an ISP that seems to have banned imgur so I used a proxy to check them out, and a comment suggested that they aren't. Are they? Are they centered on the desktop and/or mobile?

  • You've used nonbreak spaces, and they would render differently on different devices, even different zooms. A better option is the <center> tag.
    – M.A.R.
    Commented Dec 26, 2017 at 11:53
  • Ah, OK. It's much easier to do in sites with MathJax (with double dollar signs), I totally forgot center tag isn't allowed. I guess you should use <pre> then. More consistent than nbsp anyway.
    – M.A.R.
    Commented Dec 26, 2017 at 12:17

1 Answer 1


As explained in this comment, since you're manually adding non-breaking space characters, they will be rendered in different way on every browser/OS. Your images will be centered on some, and not centered on others.

To achieve better results, refer to the answers on Is it possible to horizontally center an image on Stack Exchange sites?, basically saying to use <pre></pre> tag and put actual spaces.

I'm afraid there's no better way to achieve what you want.

  • Any way I can use that w/o losing the [![image][1] format?
    – Nae
    Commented Dec 26, 2017 at 13:49
  • @Nae I'm afraid not. Commented Dec 26, 2017 at 14:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .