move image to center of div html code example Example: center text in div container text-align: center