Search code examples
htmlimagewebserveralignmentcenter

Displaying an image directly from the webserver in the center of the screen


I am loading an image from the webserver and it loads aligned to the left. It fits to screen automatically and it also has a magnifying glass icon that allows me to zoom in to the image without any scaling. This is great, but am I able to have it load in the center?


Solution

  • The most recent browsers center the image already, like the latest FireFox.

    However you can't force that behaviour if the program don't do that already by itself.