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

CSS text-align property with the justify value

CSS text-align property with the justify value Bad Practice
CSS text-align property with the justify value Best Practice

For applying a justified alignment, we use the text-align property with the justify value. It makes lines of the same length, stretching out those with fewer characters and reducing the space for lines with more characters.

This type is generally common for newspapers, books, and other published materials. The only complication here arises when individual words are too long, or the columns are too narrow. As a result, the text ends up having large hideous gaps of blank space. To fix this situation, try making lines longer or words shorter or apply the smaller font.

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