X
X
xtala zen2016-10-15 14:59:32
css
xtala zen, 2016-10-15 14:59:32

How to tame text-align: justify?

Hello. The question arose, the essence is this - the most commonly used text alignment in web design is left or right. But in the presence of a narrow content block, the alignment of the text in the center looks much more pleasant, but it causes pitfalls such as uneven length of spaces, if not in the main text, then in the last line for sure. Recommend a script that would track uneven spaces and format the text into a digestible form. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2016-10-15
@xtala

place hyphens in the text.
So-called "soft transfers" (soft hypens) - symbols indicating the place of a possible transfer.
mnemonic - ­or entity code ­
Manually, of course, this is tedious to do. You can use an online service (for example, the first one from Google - quittance.ru/hyphenator.php#effectus) or embed the algorithm into your system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question