body { margin: 0; } #over img { margin-left: auto; margin-right: auto; display: block; }

centre align image in div

img { display: block; margin-left: auto; margin-right: auto; width: 40%; }

image center in div