Word-wrap: the word break does not work

I used the bottom slot wrapper in a div, but it doesn't seem to work at all. Any alternatives.

word-wrap: break-word;

This is CSS 3, how about CSS 2 thanks to Jean

+3
source share
5 answers

This is a CSS3 attribute, so make sure your browser supports CSS3.

+2
source

Try:

div {

text-align: justify;
white-space: normal !important;

}

and also set a fixed width in the div.

+1
source

Try:

div.mydiv 
{
    white-space: normal;
}

.

FF CSS3, Mozilla.org. Mozilla

text-align:justify;
0

Firefox 3.5 (. doc). white-space (doc) .

0
.mydiv1 {
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;}

.mydiv2 {
word-break: break-all;}

The mydiv1 class has a combination of word-break: break-all and word-wrap: break-word. Although in the mydiv2 class there is only "word-break: break-all".

Sententedagang.com

0
source

Source: https://habr.com/ru/post/1742809/


All Articles