Which snippet of CSS is commonly used to center an element horizontally code example
Example: how to center an image element inside a block in css
img { display:block;
margin-left: auto;
margin-right:auto;
}
img { display:block;
margin-left: auto;
margin-right:auto;
}