how to make an image in middle in css code example Example: aligning image to middle in html <style> .aligncenter { text-align: center; } </style>