/* It's because you have an img using display: block inside an a tag, which is inline. */ /*Move the*/ width: 60%; /*and*/ margin: 0 auto; /*to the a tag with*/ display: block; /*and add*/ width: 100%; /*to img*/