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?
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.
<center>
tag. – M.A.R. Dec 26 '17 at 11:53<pre>
then. More consistent than nbsp anyway. – M.A.R. Dec 26 '17 at 12:17