centering horizontally

CSS
div.center{display:block;margin:auto;width:50%;}
p.center{text-align:center;}
Source

Also in CSS: