how to center aign an image in html code example Example: css center image .center { display: block; margin-left: auto; margin-right: auto; }