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
  • 2,979
  • 2
  • 31
  • 41

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
  • 25,262
  • 9
  • 45
  • 70
Sandeep K.
  • 759
  • 5
  • 17