Google Accelerated Mobile Pages




How do I center position an image with html?

It is not seldom that we need an image in a centered position. But this is not always easy. Depending on the html structure the image might slip out of position, especially when you try to optimise for mobile. A still very easy option is to use a html html table.

OK. How do I center an image within a html table. Actually there is not much to do. Images within a table are centered by default.

Below is a Screenshot of a table with a centered image and text:

This is the respecitive html code: