how to fit an image in center in html code example Example: css for displaying image center text-align: center;