How to make text wrap in container - Brown Surfing

How to make text wrap in container

Posted on: December 9th, 2022
By: Efrain Lemus

Sometimes if the text is too long it might run off the page, especially if it’s a really long string of text. To make sure it breaks at the end of the container (parent element) add the following:

html, body {
    overflow-wrap: anywhere;
}

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published. Required fields are marked *