Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> div { width: 100px; border: 1px solid green; padding: 10px; word-wrap: break-word; } span { overflow-wrap: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; } </style> </head> <body> <h1>Example</h1> <div> This is a <span>loooooooooooooooooooooooooong</span> text for example. Here can be a long word, tooooooooooooooo. </div> </body> </html>