This question has already been answered:

Hello! Interested in how to format the text so that if it goes beyond the page or its block, it is automatically transferred to another line, otherwise a scroll bar appears below ... What can be done in HTML or CSS?

alt text

Reported as a duplicate by members aleksandr barakin , Pavel Mayorov , VenZell , user207618, Darth July 16, '17 at 7:27 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    There is a CSS property:

    word-wrap break-word 

    Specify it in the properties of the block in which the "crawling out" content is located.

    • 2
      Which in css3 renamed to overflow-wrap . However, the old version is much more cross-browser at the moment. - Qwertiy
    • @Qwertiy, useful remark, by the way. - AseN