Does anyone have any ideas why images which look centered within CS50 IDE HTML webpage previews are far from centered once they are shared and viewed on the internet. Shouldn't the preview view show you exactly what the webpage will look like?
In a word, not necessarily. Where elements are placed on a page is a function of the elements, the styling and the viewport (screen) size. That's why "responsive design" is a thing :)