center horizontal in css code example
Example 1: centering horizontally
div.center{display:block;margin:auto;width:50%;}
p.center{text-align:center;}
Example 2: align center css
margin: auto;
div.center{display:block;margin:auto;width:50%;}
p.center{text-align:center;}
margin: auto;