The max width is being ignored when are are no spaces in between words. Is there any way to override, or fix this?
div {
border: 1px solid black;
max-width: 100px;
}
<div>
testtesttesttesttesttesttesttesttest
</div>
The max width is being ignored when are are no spaces in between words. Is there any way to override, or fix this?
div {
border: 1px solid black;
max-width: 100px;
}
<div>
testtesttesttesttesttesttesttesttest
</div>
Try the word-wrap css property.
word-wrap: break-word