how to center text with style.css code example Example: how to put element in center in html p { text-align: center; }