CSS text-align: chrome overflow alignment

When used text-align: justify;to justify the chronology of the text, some of the lines overflow the parent div (in my case p). While other browsers (I tested them only in Mozilla Firefox) seem to work with this property.

Here is the image to solve the problem:

CSS text justify chrome issue

And so Jsfiddle contains a simple code of mine

Please note that I use:

+4
source share
4 answers

addition display:inline;to#product-description p

#product-description p {
  text-align: justify;
  display:inline;/*added*/
}

Demo

Or add display:inline;in#product-description

Demo

Added display: inline;to .panel-body, which works well, as I can see for both browsers:

Demo

+1

word-break: break-word;

0

, , ,

: ;

.

0
source

Futures Search - Works Great!

text-align: justify;
display: table-row;
text-align-last: justify;

Screenshots

0
source

All Articles