how to centrally align an image in html code example Example: center image css .centerImg { display: block; margin: 0 auto; }