0

Does anyone have idea why "word-wrap" not working in below html code?

<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" /><meta name=\"viewport\" content=\"width=341.0px, minimum-scale=1, word-wrap=break-all, maximum-scale=1, user-scalable=no, shrink-to-fit=no\" /></head><body style=\"-webkit-text-size-adjust:none\  ">HelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHello</body></html>
kb920
  • 3,039
  • 2
  • 33
  • 44

1 Answers1

1

You have to use word-wrap: break-word; CSS in body tag.

<html>

<head>
  <meta http-equiv=\ "content-type\" content=\ "text/html; charset=UTF-8\" />
  <meta name=\ "viewport\" content=\ "width=341.0px, minimum-scale=1, word-wrap=break-all, maximum-scale=1, user-scalable=no, shrink-to-fit=no\" />
</head>

<body style="word-wrap: break-word; ">HelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHello</body>

</html>
Carsten Løvbo Andersen
  • 26,637
  • 10
  • 47
  • 77
Sandeep K.
  • 759
  • 6
  • 18