How to break the line when passing the size of the div?

1

I'm having this problem rendering text without spacing.

How can I resolve it?

    
asked by anonymous 28.04.2017 / 15:41

1 answer

7

I understand that there is no line break because it does not contain spaces. Use the word-wrap property and set the value break-word , this will force a line break as soon as the text reaches the div limit.

See.

div {
    width: 200px;
    word-wrap: break-word;
}
<div>
   Note:InternetExplorer9andearlierversionsdonosupportWeb Workers.
</div>

CSS3 word-wrap Property

    
28.04.2017 / 15:52