Content does not stay inside the div

I have a div where the content of the div "escapes" the div.

if, for example, I insert something like ssssssssssssssssssssssss (and so on: P), it just iterates over the edge of the divs instead of breaking and continuing on the next line.

CSS

#content {
 position:absolute;
 width: 855px;
 padding: 195px;
 padding-top: 0px;
+3
source share
2 answers

Add the following to your CSS:

word-wrap: break-word;

Also see https://developer.mozilla.org/en/CSS/word-wrap

+7
source
0
source

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


All Articles