Topic: CSS Basics

Text alignment – CSS

Preview

To change the capitalization of an element’s text using CSS, use the text-align property:

text-align: center;

To view this and the other 300+ tutorials on Simple Dev, sign up for a 10-day free trial.