<?xml version="1.0" encoding="utf-8"?>

Text alignment

Text alignment Bad Practice
Text alignment Best Practice

Now that you understand a bit about inline CSS style syntax, let's take a look at examples.

Let's say you want to set a paragraph's alignment to be centered by default. The text is usually aligned either to the left or the right depending on the language's default script direction. Use the property text-align and choose the value center. left and right are the other possible values of this property.

Top contributors

Topics

From Lesson

Share

Improve your UX & Product skills with interactive courses that actually work