Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Avoiding big spaces in fully justified text

To format paragraphs, I use text-align: justify, but I have the problem that there are big spaces between words. In Firefox and older IE, one solution was to use text-justify: distribute, but Chrome doesn't support it.

How can I solve this problem across browsers?

Example of big spaces:

p {
  width: 200px;
  text-align: justify;
}
<p>
  9 mln litų bendrovei „Lietuvos geležinkeliai“ kainavo aukso medalis, laimėtas Lietuvos pramonininkų konfederacijos apdovanojimuose „Metų gaminys 2012“ už Vilniaus kuro bazės, skirtos geležinkelių riedmenims, modernizavimą. 
</p>

Answer*

Cancel
1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. Commented Jun 19, 2023 at 15:02