Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS text align justify big spaces

Tags:

To format paragraphs I use text-align:justify, but I have one problem that there are big spaces between words, for IE the solution is to use text-justify: distribute;, but Chrome doesn't support this, my question is what should I use for Chrome and Firefox

Example of big spaces: http://jsfiddle.net/L5drN/

like image 337
Wizard Avatar asked Feb 27 '13 17:02

Wizard


2 Answers

Give negative values as you prefer for word-spacing..

ex:

text-align:justify;
word-spacing:-2px;

Works for me and Hope this helps :)

like image 102
Laksh Avatar answered Oct 02 '22 14:10

Laksh


Use:

word-break: break-all;

And Ok!

like image 42
Giovanny Gonzalez Avatar answered Oct 02 '22 14:10

Giovanny Gonzalez