How to wrap text inside a div so that even one long word is wrapped not only by beautifully spaced words? do i need js for this?
<div style="word-wrap: break-word">Here is some content for the div element</div>
found a similar question: How to wrap text in HTML?
Literature:
http://www.css3.com/css-word-wrap/
http://www.1keydata.com/css-tutorial/wrap.php
http://bytes.com/topic/html-css/answers/627827-how-wrap-text-css
using css you can achieve
word-wrap:break-word
Style
div { word-wrap: break-word; }
HTML
<div>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</div>
you can use word-wrap: break-word;in your css for div.
word-wrap: break-word;
Source: https://habr.com/ru/post/1792435/More articles:Remove class = "form element" from Drupal forms - drupalHow to save an array of objects? - javascriptCan I change pic profile via iphone? - iphoneIoc containers used for MVC 3? - asp.net-mvchttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1792434/conditionally-remove-calls-to-a-function-in-as3-like-cs-conditionalattribute&usg=ALkJrhhUk9lGb6uJAE1qMImUHLjDgfsSvgHow to restrict a user to choose a date between a range of years in django? - pythonOnEngine Controls - andengineASP.NET MVC 3 Route Breaks Functionality ActionLink - asp.net-mvcHow can I go through the source code of a DLL loaded on the fly? - c ++Changing the XML structure generated by XmlSerializer in C # - c #All Articles