Web page

How to hyphenate web pages

Latest version of Chromium based browsers has built in hyphenation for many languages. The HTML elements should annotate the language using lang attribute. Then use the following css:

text-align: justify;
hyphens: auto;
-webkit-hyphenate-character: '';

Firefox 97+ will have hyphenation support for Indian languages(Bug 1240277)

For other browsers or old versions https://github.com/mnater/Hyphenopoly can be used

Last updated