<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style type="text/css"> div.breakall { width: 0px; word-break: break-all; } div.keepall { width: 0px; word-break: keep-all; } </style> <title>Test - word-break: break-all</title> </head> <body> <div class="breakall">fox f-o</div><br /> <div class="keepall">fox f-o</div><br /> </body> </html>