Is word wipe style safe for use on the body?

It is safe?

* { word-wrap: break-word }

I have too many places where I should apply this style. Can any evil come from this line? What problems can I have?

+3
source share
7 answers

Firstly, * technically not only on BODY, but also HTML(yes, sometimes it matters).

Secondly, in some cases, using a template can cause performance problems. I only saw this when using something (admittedly terrible) like DHTML behavior, but in my opinion, it would be better to declare an explicit set of elements to which it applies.

, CSS .

, , , , P, , TD, DIV ..

+7

, . CSS, , , . , , , , , .

+2

, , .

0

"", , , ?

.this, #that, p, li.menu, .x, .yz, #something.class:)

0

, . IE, . , .

* , (div, p, td ..). .

0

body, :

body { word-wrap: break-word; }
0

word-wrap on body , . !

0

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


All Articles